Silence unused imports for backports

Would be cool if there was a way to do this on future:: in general.
This commit is contained in:
Fabian Boehm 2024-10-26 22:28:37 +02:00
parent 0e62178320
commit ca27e028df
3 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ use fish::eprintf;
use fish::expand::INTERNAL_SEPARATOR;
use fish::fds::set_cloexec;
use fish::fprintf;
#[allow(unused_imports)]
use fish::future::{IsSomeAnd, IsSorted};
use fish::global_safety::RelaxedAtomicBool;
use fish::highlight::{colorize, highlight_shell, HighlightRole, HighlightSpec};

View File

@ -1,3 +1,4 @@
#[allow(unused_imports)]
use crate::future::IsSomeAnd;
use crate::highlight::HighlightSpec;
use crate::wchar::prelude::*;

View File

@ -27,6 +27,7 @@ use crate::curses::{term, tparm0, tparm1};
use crate::env::{Environment, TERM_HAS_XN};
use crate::fallback::fish_wcwidth;
use crate::flog::FLOGF;
#[allow(unused_imports)]
use crate::future::IsSomeAnd;
use crate::global_safety::RelaxedAtomicBool;
use crate::highlight::HighlightColorResolver;