summaryrefslogtreecommitdiff
path: root/test/sys/test_aio_drop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/sys/test_aio_drop.rs')
-rw-r--r--test/sys/test_aio_drop.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sys/test_aio_drop.rs b/test/sys/test_aio_drop.rs
index ef0f5041..1f4a3e79 100644
--- a/test/sys/test_aio_drop.rs
+++ b/test/sys/test_aio_drop.rs
@@ -13,13 +13,13 @@ use tempfile::tempfile;
#[should_panic(expected = "Dropped an in-progress AioCb")]
#[cfg(not(target_env = "musl"))]
fn test_drop() {
- const WBUF: &'static [u8] = b"CDEF";
+ const WBUF: &[u8] = b"CDEF";
let f = tempfile().unwrap();
f.set_len(6).unwrap();
let mut aiocb = AioCb::from_slice( f.as_raw_fd(),
2, //offset
- &WBUF,
+ WBUF,
0, //priority
SigevNotify::SigevNone,
LioOpcode::LIO_NOP);