clippy: fix unused_trait_names lint

https://rust-lang.github.io/rust-clippy/master/index.html#unused_trait_names

Closes #12450
This commit is contained in:
xtqqczze
2026-02-14 16:03:31 +00:00
committed by Johannes Altmanninger
parent e76370b3b7
commit 4eac5f4d9d
67 changed files with 107 additions and 103 deletions

View File

@@ -14,11 +14,11 @@
use crate::flog;
use errno::errno;
use fish_wcstringutil::{join_strings, str2bytes_callback};
use fish_widestring::{IntoCharIter, L, WExt, WString, wstr};
use fish_widestring::{IntoCharIter, L, WExt as _, WString, wstr};
use nix::unistd::AccessFlags;
use std::ffi::{CStr, OsStr};
use std::fs::{self, canonicalize};
use std::io::{self, Write};
use std::io::{self, Write as _};
use std::os::unix::prelude::*;
pub use crate::wutil::printf::{eprintf, fprintf, printf, sprintf};
@@ -463,11 +463,11 @@ mod tests {
use crate::common::bytes2wcstring;
use crate::prelude::*;
use crate::tests::prelude::*;
use rand::Rng;
use rand::Rng as _;
use std::{
fs::OpenOptions,
io::{Read, Seek},
os::{fd::AsRawFd, unix::fs::OpenOptionsExt},
io::{Read as _, Seek as _},
os::{fd::AsRawFd as _, unix::fs::OpenOptionsExt as _},
};
mod test_path_normalize_for_cd {