From ac9fba9684a9dee251f29d3b8b5b3da426c2d595 Mon Sep 17 00:00:00 2001 From: Christian Meusel Date: Fri, 29 Mar 2024 16:17:59 +0100 Subject: [PATCH] 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. --- src/posix/tty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posix/tty.rs b/src/posix/tty.rs index c21cf2d1..e29a8a85 100644 --- a/src/posix/tty.rs +++ b/src/posix/tty.rs @@ -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;