Skip to content

Commit

Permalink
Clean up superfluous import from extern prelude
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sirhcel committed Mar 29, 2024
1 parent 6b84960 commit ac9fba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posix/tty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::time::Duration;
use std::{io, mem};

use nix::fcntl::{fcntl, OFlag};
use nix::{self, libc, unistd};
use nix::{libc, unistd};

use crate::posix::ioctl::{self, SerialLines};
use crate::posix::termios;
Expand Down

0 comments on commit ac9fba9

Please sign in to comment.