Skip to content

Commit ac9fba9

Browse files
committed
Clean up superfluous import from extern prelude
Our dependencies get passed to rustc with '--extern' (see output of 'cargo --verbose check') and starting with the 2018 edition, they are automatically provided trough the extern prelude (https://doc.rust-lang.org/stable/reference/names/preludes.html#extern-prelude). So no need for declaring the use explicitly here. Current nightly reports this as unused import and this silences the warning.
1 parent 6b84960 commit ac9fba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/posix/tty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::time::Duration;
55
use std::{io, mem};
66

77
use nix::fcntl::{fcntl, OFlag};
8-
use nix::{self, libc, unistd};
8+
use nix::{libc, unistd};
99

1010
use crate::posix::ioctl::{self, SerialLines};
1111
use crate::posix::termios;

0 commit comments

Comments
 (0)