From ca27e028dfd52bad9b9e71aec7acdb3c328bf880 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sat, 26 Oct 2024 22:28:37 +0200 Subject: [PATCH] Silence unused imports for backports Would be cool if there was a way to do this on future:: in general. --- src/bin/fish_indent.rs | 1 + src/editable_line.rs | 1 + src/screen.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/src/bin/fish_indent.rs b/src/bin/fish_indent.rs index af572ebe9..39aefca67 100644 --- a/src/bin/fish_indent.rs +++ b/src/bin/fish_indent.rs @@ -30,6 +30,7 @@ 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}; diff --git a/src/editable_line.rs b/src/editable_line.rs index 8c8aeaa78..c30622944 100644 --- a/src/editable_line.rs +++ b/src/editable_line.rs @@ -1,3 +1,4 @@ +#[allow(unused_imports)] use crate::future::IsSomeAnd; use crate::highlight::HighlightSpec; use crate::wchar::prelude::*; diff --git a/src/screen.rs b/src/screen.rs index 3fec27ae5..45f5913c1 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -27,6 +27,7 @@ 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;