refactor: update imports to use as _ for unused identifiers across multiple files

This commit is contained in:
Tunglies
2025-11-09 22:15:37 +08:00
parent e6c8f762db
commit 4eeb883464
42 changed files with 74 additions and 58 deletions

View File

@@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
use serde_yaml_ng::{Mapping, Value};
use std::{
net::{IpAddr, Ipv4Addr, SocketAddr},
str::FromStr,
str::FromStr as _,
};
#[derive(Default, Debug, Clone)]

View File

@@ -1,9 +1,9 @@
use crate::utils::dirs::get_encryption_key;
use aes_gcm::{
Aes256Gcm, Key,
aead::{Aead, KeyInit},
aead::{Aead as _, KeyInit as _},
};
use base64::{Engine, engine::general_purpose::STANDARD};
use base64::{Engine as _, engine::general_purpose::STANDARD};
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use std::cell::Cell;
use std::future::Future;

View File

@@ -6,7 +6,7 @@ use crate::{
tmpl,
},
};
use anyhow::{Context, Result, bail};
use anyhow::{Context as _, Result, bail};
use serde::{Deserialize, Serialize};
use serde_yaml_ng::Mapping;
use smartstring::alias::String;

View File

@@ -1,10 +1,10 @@
use super::{PrfOption, prfitem::PrfItem};
use crate::utils::{
dirs::{self, PathBufExec},
dirs::{self, PathBufExec as _},
help,
};
use crate::{logging, utils::logging::Type};
use anyhow::{Context, Result, bail};
use anyhow::{Context as _, Result, bail};
use serde::{Deserialize, Serialize};
use serde_yaml_ng::Mapping;
use smartstring::alias::String;