aboutsummaryrefslogtreecommitdiffstats
path: root/tests/input.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-03-08 12:58:51 -0500
committerJesse Luehrs <doy@tozt.net>2023-03-08 12:58:51 -0500
commitdcceb025761d379e18111043eb2101e112addb71 (patch)
tree8b8e7aafc0b5e863749cb2642fc29302657eadea /tests/input.rs
parent5dd712dbda2007fe16d9addc2497f72593df7a47 (diff)
downloadtextmode-dcceb025761d379e18111043eb2101e112addb71.tar.gz
textmode-dcceb025761d379e18111043eb2101e112addb71.zip
bump deps
Diffstat (limited to 'tests/input.rs')
-rw-r--r--tests/input.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/input.rs b/tests/input.rs
index 5b23b6a..1799cde 100644
--- a/tests/input.rs
+++ b/tests/input.rs
@@ -1,7 +1,6 @@
#![allow(clippy::collapsible_if)]
use std::io::Write as _;
-use std::os::unix::io::AsRawFd as _;
mod fixtures;
@@ -335,8 +334,7 @@ fn assert_line(
fn assert_no_more_lines(
f: &mut std::io::BufReader<&mut pty_process::blocking::Pty>,
) {
- if fixtures::read_ready(f.get_ref().as_raw_fd()) || !f.buffer().is_empty()
- {
+ if fixtures::read_ready(f.get_ref()) || !f.buffer().is_empty() {
use std::io::Read as _;
let mut buf = vec![0; 4096];
let bytes = f.read(&mut buf).unwrap();