Skip to content

Commit fc59f20

Browse files
committed
fix
1 parent f5dffcc commit fc59f20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_pty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ fn test_open_ptty_pair() {
136136

137137
/// Put the terminal in raw mode.
138138
fn make_raw<Fd: AsFd>(fd: Fd) {
139-
let mut termios = tcgetattr(fd).unwrap();
139+
let mut termios = tcgetattr(&fd).unwrap();
140140
cfmakeraw(&mut termios);
141-
tcsetattr(fd, SetArg::TCSANOW, &termios).unwrap();
141+
tcsetattr(&fd, SetArg::TCSANOW, &termios).unwrap();
142142
}
143143

144144
/// Test `io::Read` on the PTTY master

0 commit comments

Comments
 (0)