Skip to content

This commit cleans up a few test warnings #13096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libstd/io/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1282,10 +1282,10 @@ mod test {
}

iotest!(fn binary_file() {
use rand::{rng, Rng};
use rand::{Rng, task_rng};

let mut bytes = [0, ..1024];
rng().fill_bytes(bytes);
task_rng().fill_bytes(bytes);

let tmpdir = tmpdir();

Expand Down
2 changes: 1 addition & 1 deletion src/libstd/rt/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ mod imp {
use cast;
use clone::Clone;
use option::{Option, Some, None};
use ptr::RawPtr;
use iter::Iterator;
use unstable::mutex::{StaticNativeMutex, NATIVE_MUTEX_INIT};
use mem;
Expand Down Expand Up @@ -124,6 +123,7 @@ mod imp {
#[cfg(not(test))]
unsafe fn load_argc_and_argv(argc: int, argv: **u8) -> ~[~[u8]] {
use c_str::CString;
use ptr::RawPtr;
use {slice, libc};
use slice::CloneableVector;

Expand Down
4 changes: 2 additions & 2 deletions src/libstd/rt/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ mod test {

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

Expand Down
1 change: 0 additions & 1 deletion src/libstd/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,6 @@ mod tests {
use mem::{drop, size_of};
use ops::Drop;
use option::{Some, None};
use ptr;
use container::Container;
use slice::{Vector, MutableVector, ImmutableVector};

Expand Down