From e51a044c197077a5b74a996dc580bc4d47749ede Mon Sep 17 00:00:00 2001 From: Jack Stouffer Date: Thu, 30 Jun 2016 17:17:03 -0400 Subject: [PATCH] Fixed local imports in std.container.rbtree --- std/container/rbtree.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/std/container/rbtree.d b/std/container/rbtree.d index 39d4ff26a..597a47b07 100644 --- a/std/container/rbtree.d +++ b/std/container/rbtree.d @@ -739,9 +739,9 @@ final class RedBlackTree(T, alias less = "a < b", bool allowDuplicates = false) if (is(typeof(binaryFun!less(T.init, T.init)))) { import std.meta : allSatisfy; - import std.range.primitives; + import std.range.primitives : isInputRange, walkLength; import std.range : Take; - import std.traits; + import std.traits : isIntegral, isDynamicArray, isImplicitlyConvertible; alias _less = binaryFun!less; @@ -1631,7 +1631,7 @@ assert(equal(rbt[], [5])); */ void printTree(Node n, int indent = 0) { - import std.stdio; + import std.stdio : write, writeln; if (n !is null) { printTree(n.right, indent + 2); @@ -1661,7 +1661,7 @@ assert(equal(rbt[], [5])); // int recurse(Node n, string path) { - import std.stdio; + import std.stdio : writeln; if (n is null) return 1; if (n.parent.left !is n && n.parent.right !is n)