diff options
author | Michael Baikov <manpacket@gmail.com> | 2022-08-04 07:54:45 +0800 |
---|---|---|
committer | Michael Baikov <manpacket@gmail.com> | 2022-08-04 09:44:40 +0800 |
commit | a6ee63ac3212e62518c97252581cfa48e2ad056e (patch) | |
tree | a57022d55d6c819491a1ac9c510049748034440e /test/sys/test_termios.rs | |
parent | 854a5469c0475acf2e57b63740c9e447d3b9e4f8 (diff) | |
download | nix-a6ee63ac3212e62518c97252581cfa48e2ad056e.zip |
fix clippy assertions_on_result_states
https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_result_states
Diffstat (limited to 'test/sys/test_termios.rs')
-rw-r--r-- | test/sys/test_termios.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sys/test_termios.rs b/test/sys/test_termios.rs index e567a52c..11a08cb5 100644 --- a/test/sys/test_termios.rs +++ b/test/sys/test_termios.rs @@ -22,7 +22,7 @@ fn test_tcgetattr_pty() { let _m = crate::PTSNAME_MTX.lock(); let pty = openpty(None, None).expect("openpty failed"); - assert!(termios::tcgetattr(pty.slave).is_ok()); + termios::tcgetattr(pty.slave).expect("assert failed"); close(pty.master).expect("closing the master failed"); close(pty.slave).expect("closing the slave failed"); } |