summaryrefslogtreecommitdiff
path: root/test/test_sendfile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_sendfile.rs')
-rw-r--r--test/test_sendfile.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_sendfile.rs b/test/test_sendfile.rs
index 7db65b9a..7b51a1a6 100644
--- a/test/test_sendfile.rs
+++ b/test/test_sendfile.rs
@@ -10,9 +10,9 @@ use nix::sys::sendfile::sendfile;
#[test]
fn test_sendfile() {
- 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: off_t = 5;