Skip to content

Commit

Permalink
Fix wrong import.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSmith33 committed Jul 17, 2015
1 parent 9643b6f commit 1234040
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cbor.d
Original file line number Diff line number Diff line change
Expand Up @@ -1089,9 +1089,9 @@ private T readInteger(T, R)(auto ref R input)
private T readN(ubyte size, T, R)(auto ref R input)
if(isInputRange!R && is(ElementType!R == ubyte))
{
import std.algorithm : copy, take;
import std.algorithm : copy;
import std.bitmanip : bigEndianToNative;
import std.range : dropExactly;
import std.range : dropExactly, take;

static assert(T.sizeof == size);
static assert(size > 0);
Expand Down Expand Up @@ -1122,8 +1122,8 @@ private void dropBytes(R)(auto ref R input, ulong length)
private ubyte[] readBytes(R)(auto ref R input, ulong length)
if(isInputRange!R && is(ElementType!R == ubyte))
{
import std.algorithm : take;
import std.array;
import std.range : take;
if (input.length < length) onInsufficientInput();

static if (size_t.sizeof < ulong.sizeof)
Expand Down

0 comments on commit 1234040

Please sign in to comment.