lints: remove unused imports reported by nightly Rust

Part of #11950
This commit is contained in:
Daniel Rainer
2025-10-16 01:39:41 +02:00
committed by Johannes Altmanninger
parent 63cda65815
commit 83ece2161d
5 changed files with 3 additions and 6 deletions

View File

@@ -490,7 +490,6 @@ fn test_autoload() {
let _cleanup = test_init();
use crate::common::{charptr2wcstring, wcs2zstring};
use crate::fds::wopen_cloexec;
use crate::wutil::sprintf;
use nix::fcntl::OFlag;
macro_rules! run {

View File

@@ -11,7 +11,7 @@
use crate::wutil::wgettext;
use crate::{
wchar::{wstr, WString, L},
wutil::{fish_wcstoi, sprintf, wgettext_fmt},
wutil::{fish_wcstoi, wgettext_fmt},
};
use std::num::NonZeroU32;

View File

@@ -14,7 +14,7 @@
common::charptr2wcstring,
reader::{get_quote, is_backslashed},
util::wcsfilecmp,
wutil::{localizable_string, sprintf, LocalizableString},
wutil::{localizable_string, LocalizableString},
};
use bitflags::bitflags;
use once_cell::sync::Lazy;

View File

@@ -13,7 +13,7 @@
use crate::parser::Parser;
use crate::parser_keywords::parser_keywords_is_reserved;
use crate::wchar::prelude::*;
use crate::wutil::{dir_iter::DirIter, sprintf};
use crate::wutil::dir_iter::DirIter;
use once_cell::sync::Lazy;
use std::collections::{HashMap, HashSet};
use std::num::NonZeroU32;

View File

@@ -51,8 +51,6 @@ macro_rules! eprintf {
#[cfg(test)]
mod tests {
use super::*;
// Test basic sprintf with both literals and wide strings.
#[test]
fn test_sprintf() {