summaryrefslogtreecommitdiff
path: root/test/test_net.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_net.rs')
-rw-r--r--test/test_net.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_net.rs b/test/test_net.rs
index 24bd411a..b8940e71 100644
--- a/test/test_net.rs
+++ b/test/test_net.rs
@@ -1,10 +1,10 @@
use nix::net::if_::*;
#[cfg(any(target_os = "android", target_os = "linux"))]
-const LOOPBACK: &'static [u8] = b"lo";
+const LOOPBACK: &[u8] = b"lo";
#[cfg(not(any(target_os = "android", target_os = "linux")))]
-const LOOPBACK: &'static [u8] = b"lo0";
+const LOOPBACK: &[u8] = b"lo0";
#[test]
fn test_if_nametoindex() {