This commit cleans up a few test warnings

This commit is contained in:
Steven Stewart-Gallus 2014-03-22 22:20:27 -07:00
parent 94e4e91724
commit 8feb2ddf12
4 changed files with 5 additions and 6 deletions

View File

@ -1282,10 +1282,10 @@ mod test {
} }
iotest!(fn binary_file() { iotest!(fn binary_file() {
use rand::{rng, Rng}; use rand::{Rng, task_rng};
let mut bytes = [0, ..1024]; let mut bytes = [0, ..1024];
rng().fill_bytes(bytes); task_rng().fill_bytes(bytes);
let tmpdir = tmpdir(); let tmpdir = tmpdir();

View File

@ -66,7 +66,6 @@ mod imp {
use cast; use cast;
use clone::Clone; use clone::Clone;
use option::{Option, Some, None}; use option::{Option, Some, None};
use ptr::RawPtr;
use iter::Iterator; use iter::Iterator;
use unstable::mutex::{StaticNativeMutex, NATIVE_MUTEX_INIT}; use unstable::mutex::{StaticNativeMutex, NATIVE_MUTEX_INIT};
use mem; use mem;
@ -124,6 +123,7 @@ mod imp {
#[cfg(not(test))] #[cfg(not(test))]
unsafe fn load_argc_and_argv(argc: int, argv: **u8) -> ~[~[u8]] { unsafe fn load_argc_and_argv(argc: int, argv: **u8) -> ~[~[u8]] {
use c_str::CString; use c_str::CString;
use ptr::RawPtr;
use {slice, libc}; use {slice, libc};
use slice::CloneableVector; use slice::CloneableVector;

View File

@ -433,8 +433,8 @@ mod test {
#[test] #[test]
fn rng() { fn rng() {
use rand::{rng, Rng}; use rand::{Rng, task_rng};
let mut r = rng(); let mut r = task_rng();
let _ = r.next_u32(); let _ = r.next_u32();
} }

View File

@ -1365,7 +1365,6 @@ mod tests {
use mem::{drop, size_of}; use mem::{drop, size_of};
use ops::Drop; use ops::Drop;
use option::{Some, None}; use option::{Some, None};
use ptr;
use container::Container; use container::Container;
use slice::{Vector, MutableVector, ImmutableVector}; use slice::{Vector, MutableVector, ImmutableVector};