diff options
author | Steve Lau <stevelauc@outlook.com> | 2022-12-09 11:08:17 +0800 |
---|---|---|
committer | Steve Lau <stevelauc@outlook.com> | 2022-12-09 11:08:17 +0800 |
commit | fc59f20e19d3371bef7f0001b08c4cd4b298a5dd (patch) | |
tree | a0a5f987a201893fedafad8be644c04fef0dc346 /test | |
parent | f5dffcc7f089b3f33db0a2f771d56f330609b7e4 (diff) | |
download | nix-fc59f20e19d3371bef7f0001b08c4cd4b298a5dd.zip |
fix
Diffstat (limited to 'test')
-rw-r--r-- | test/test_pty.rs | 4 |
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 |