diff options
author | Carl Lerche <me@carllerche.com> | 2015-01-09 15:42:44 -0800 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-01-09 15:42:44 -0800 |
commit | 254393b9817d14016f4a073f8c92cdfd8091a0e2 (patch) | |
tree | 554f1187c5130e14ec58b40ea5805c3ca13b297c | |
parent | 1f99a9321946db0c79a805caa95e7cc2fe310f25 (diff) | |
download | nix-254393b9817d14016f4a073f8c92cdfd8091a0e2.zip |
Update for Rust 1.0 alpha
-rw-r--r-- | src/lib.rs | 2 | ||||
-rw-r--r-- | tests/unistd.rs | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -1,6 +1,8 @@ #![crate_name = "nix"] #![feature(linkage)] +#![feature(int_uint)] +#![allow(unstable)] #![allow(non_camel_case_types)] extern crate libc; diff --git a/tests/unistd.rs b/tests/unistd.rs index 7590fa07..431d4579 100644 --- a/tests/unistd.rs +++ b/tests/unistd.rs @@ -1,3 +1,6 @@ +#![allow(unstable)] +#![feature(int_uint)] + extern crate nix; #[cfg(test)] @@ -10,7 +13,7 @@ mod test { #[test] fn test_writev() { let mut to_write = Vec::with_capacity(16 * 128); - for _ in range(0u, 16) { + for _ in range(0, 16) { let s:String = thread_rng().gen_ascii_chars().take(128).collect(); let b = s.as_bytes(); to_write.extend(b.iter().map(|x| x.clone())); |