summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSteve Lau <stevelauc@outlook.com>2022-12-09 11:08:17 +0800
committerSteve Lau <stevelauc@outlook.com>2022-12-09 11:08:17 +0800
commitfc59f20e19d3371bef7f0001b08c4cd4b298a5dd (patch)
treea0a5f987a201893fedafad8be644c04fef0dc346 /test
parentf5dffcc7f089b3f33db0a2f771d56f330609b7e4 (diff)
downloadnix-fc59f20e19d3371bef7f0001b08c4cd4b298a5dd.zip
fix
Diffstat (limited to 'test')
-rw-r--r--test/test_pty.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pty.rs b/test/test_pty.rs
index 9ee94470..4cc6620c 100644
--- a/test/test_pty.rs
+++ b/test/test_pty.rs
@@ -136,9 +136,9 @@ fn test_open_ptty_pair() {
/// Put the terminal in raw mode.
fn make_raw<Fd: AsFd>(fd: Fd) {
- let mut termios = tcgetattr(fd).unwrap();
+ let mut termios = tcgetattr(&fd).unwrap();
cfmakeraw(&mut termios);
- tcsetattr(fd, SetArg::TCSANOW, &termios).unwrap();
+ tcsetattr(&fd, SetArg::TCSANOW, &termios).unwrap();
}
/// Test `io::Read` on the PTTY master