Fix errors and warnings with current rust nightly

This commit is contained in:
Florian Hartwig
2015-03-19 16:23:29 +01:00
parent e806a59b4a
commit 3f9b7f6d46
5 changed files with 5 additions and 7 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
use {alloc, Bytes, SeqByteStr, MAX_CAPACITY};
use traits::{Buf, MutBuf, MutBufExt, ByteStr};
use std::{cmp, ptr};
use std::num::UnsignedInt;
/*
*
@@ -57,7 +56,7 @@ impl ByteBuf {
}
// Round the capacity to the closest power of 2
capacity = UnsignedInt::next_power_of_two(capacity);
capacity = capacity.next_power_of_two();
// Allocate the memory
let mem = alloc::HEAP.allocate(capacity as usize);