summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2015-01-09 15:42:44 -0800
committerCarl Lerche <me@carllerche.com>2015-01-09 15:42:44 -0800
commit254393b9817d14016f4a073f8c92cdfd8091a0e2 (patch)
tree554f1187c5130e14ec58b40ea5805c3ca13b297c /tests
parent1f99a9321946db0c79a805caa95e7cc2fe310f25 (diff)
downloadnix-254393b9817d14016f4a073f8c92cdfd8091a0e2.zip
Update for Rust 1.0 alpha
Diffstat (limited to 'tests')
-rw-r--r--tests/unistd.rs5
1 files changed, 4 insertions, 1 deletions
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()));