summaryrefslogtreecommitdiff
path: root/test/test_fcntl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_fcntl.rs')
-rw-r--r--test/test_fcntl.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_fcntl.rs b/test/test_fcntl.rs
index 795b6c85..57b35837 100644
--- a/test/test_fcntl.rs
+++ b/test/test_fcntl.rs
@@ -8,9 +8,9 @@ use std::os::unix::fs;
#[test]
fn test_openat() {
- const CONTENTS: &'static [u8] = b"abcd";
+ const CONTENTS: &[u8] = b"abcd";
let mut tmp = NamedTempFile::new().unwrap();
- tmp.write(CONTENTS).unwrap();
+ tmp.write_all(CONTENTS).unwrap();
let dirfd = open(tmp.path().parent().unwrap(),
OFlag::empty(),
@@ -62,9 +62,9 @@ mod linux_android {
#[test]
fn test_splice() {
- const CONTENTS: &'static [u8] = b"abcdef123456";
+ const CONTENTS: &[u8] = b"abcdef123456";
let mut tmp = tempfile().unwrap();
- tmp.write(CONTENTS).unwrap();
+ tmp.write_all(CONTENTS).unwrap();
let (rd, wr) = pipe().unwrap();
let mut offset: loff_t = 5;