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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_net.rs b/test/test_net.rs
index d1050c16..c44655a4 100644
--- a/test/test_net.rs
+++ b/test/test_net.rs
@@ -15,5 +15,5 @@ const LOOPBACK: &[u8] = b"loop";
#[test]
fn test_if_nametoindex() {
- assert!(if_nametoindex(LOOPBACK).is_ok());
+ if_nametoindex(LOOPBACK).expect("assertion failed");
}