From 6e71d77e6981bdf954fab33d2c903a8d9495e3e1 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Tue, 22 Jul 2014 02:40:44 +0200 Subject: [PATCH] Localizes std.stream imports only where they are needed. --- source/dyaml/reader.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index c4110b2..0df0db8 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -15,7 +15,6 @@ import std.algorithm; import std.conv; import std.exception; import std.stdio; -import std.stream; import std.string; import std.system; import std.utf; @@ -87,6 +86,7 @@ final class Reader } public: + import std.stream; /// Construct a Reader. /// /// Params: stream = Input stream. Must be readable and seekable. @@ -619,6 +619,7 @@ bool printable(const dchar[] chars) @safe pure nothrow @nogc //Unittests. +import std.stream; void testEndian(R)() { writeln(typeid(R).toString() ~ ": endian unittest");