Style fix: Add whitespace between import colon

This commit is contained in:
Sebastian Wilzbach 2016-10-11 11:43:03 +02:00
parent df2e72d113
commit c5ba7c7d0b
4 changed files with 8 additions and 8 deletions

View file

@ -1298,8 +1298,8 @@ See_Also:
auto setUnion(alias less = "a < b", Rs...) auto setUnion(alias less = "a < b", Rs...)
(Rs rs) (Rs rs)
{ {
import std.algorithm.iteration: uniq; import std.algorithm.iteration : uniq;
import std.algorithm.sorting: merge; import std.algorithm.sorting : merge;
return merge!(less, Rs)(rs).uniq; return merge!(less, Rs)(rs).uniq;
} }
@ -1330,7 +1330,7 @@ auto setUnion(alias less = "a < b", Rs...)
@safe unittest @safe unittest
{ {
// save // save
import std.range: dropOne; import std.range : dropOne;
int[] a = [0, 1, 2]; int[] a = [0, 1, 2];
int[] b = [0, 3]; int[] b = [0, 3];
auto arr = a.setUnion(b); auto arr = a.setUnion(b);
@ -1353,7 +1353,7 @@ auto setUnion(alias less = "a < b", Rs...)
{ {
import std.algorithm.comparison : equal; import std.algorithm.comparison : equal;
import std.internal.test.dummyrange; import std.internal.test.dummyrange;
import std.range: iota; import std.range : iota;
auto dummyResult1 = [1, 1.5, 2, 3, 4, 5, 5.5, 6, 7, 8, 9, 10]; auto dummyResult1 = [1, 1.5, 2, 3, 4, 5, 5.5, 6, 7, 8, 9, 10];
auto dummyResult2 = iota(1, 11); auto dummyResult2 = iota(1, 11);

View file

@ -1216,7 +1216,7 @@ Merge!(less, Rs) merge(alias less = "a < b", Rs...)
@safe pure nothrow unittest @safe pure nothrow unittest
{ {
// save // save
import std.range: dropOne; import std.range : dropOne;
int[] a = [1, 2]; int[] a = [1, 2];
int[] b = [0, 3]; int[] b = [0, 3];
auto arr = a.merge(b); auto arr = a.merge(b);

View file

@ -416,8 +416,8 @@ unittest
unittest // issue 16506 unittest // issue 16506
{ {
import std.experimental.allocator.gc_allocator: GCAllocator; import std.experimental.allocator.gc_allocator : GCAllocator;
import std.experimental.allocator.mallocator: Mallocator; import std.experimental.allocator.mallocator : Mallocator;
static void f(ParentAllocator)(size_t sz) static void f(ParentAllocator)(size_t sz)
{ {

View file

@ -843,7 +843,7 @@ template Tuple(Specs...)
if (is(typeof(translate) : V[K], V, K) && isSomeString!V && if (is(typeof(translate) : V[K], V, K) && isSomeString!V &&
(isSomeString!K || is(K : size_t))) (isSomeString!K || is(K : size_t)))
{ {
import std.range: ElementType; import std.range : ElementType;
static if (isSomeString!(ElementType!(typeof(translate.keys)))) static if (isSomeString!(ElementType!(typeof(translate.keys))))
{ {
{ {