From fc59f20e19d3371bef7f0001b08c4cd4b298a5dd Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Fri, 9 Dec 2022 11:08:17 +0800 Subject: fix --- test/test_pty.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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: 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 -- cgit v1.2.3