summaryrefslogtreecommitdiff
path: root/test/sys/test_termios.rs
diff options
context:
space:
mode:
authorMichael Baikov <manpacket@gmail.com>2022-08-04 07:54:45 +0800
committerMichael Baikov <manpacket@gmail.com>2022-08-04 09:44:40 +0800
commita6ee63ac3212e62518c97252581cfa48e2ad056e (patch)
treea57022d55d6c819491a1ac9c510049748034440e /test/sys/test_termios.rs
parent854a5469c0475acf2e57b63740c9e447d3b9e4f8 (diff)
downloadnix-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.rs2
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");
}