summaryrefslogtreecommitdiff
path: root/test/sys/test_aio_drop.rs
diff options
context:
space:
mode:
authorBryant Mairs <bryantmairs@google.com>2017-12-15 14:41:37 -0800
committerBryant Mairs <bryantmairs@google.com>2017-12-20 07:05:04 -0800
commitae8e4a4ba0a2c3300624b5ed560ac95ed6244005 (patch)
tree3a75ccc3926794898c76cc9dd136e1988409a74c /test/sys/test_aio_drop.rs
parent09a79fa1c5e67a07b07a160dca01474ec324ecf6 (diff)
downloadnix-ae8e4a4ba0a2c3300624b5ed560ac95ed6244005.zip
Remove elided 'static lifetime
As of Rust 1.17 'static lifetimes are implied when declaring consts.
Diffstat (limited to 'test/sys/test_aio_drop.rs')
-rw-r--r--test/sys/test_aio_drop.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sys/test_aio_drop.rs b/test/sys/test_aio_drop.rs
index ef0f5041..9214957f 100644
--- a/test/sys/test_aio_drop.rs
+++ b/test/sys/test_aio_drop.rs
@@ -13,7 +13,7 @@ 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();