diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-08-04 03:31:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 03:31:23 +0000 |
commit | 566c612422bc3f3e50afe29884b9d30650249016 (patch) | |
tree | a57022d55d6c819491a1ac9c510049748034440e /test/test_net.rs | |
parent | 854a5469c0475acf2e57b63740c9e447d3b9e4f8 (diff) | |
parent | a6ee63ac3212e62518c97252581cfa48e2ad056e (diff) | |
download | nix-566c612422bc3f3e50afe29884b9d30650249016.zip |
Merge #1778
1778: fix clippy assertions_on_result_states r=rtzoeller a=pacak
https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_result_states
Fixes broken CI for https://github.com/nix-rust/nix/pull/1744
Co-authored-by: Michael Baikov <manpacket@gmail.com>
Diffstat (limited to 'test/test_net.rs')
-rw-r--r-- | test/test_net.rs | 2 |
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"); } |