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
+2 -2
View File
@@ -3,7 +3,7 @@ use crate::{logging, utils::logging::Type};
pub async fn set_public_dns(dns_server: String) {
use crate::utils::logging::Type;
use crate::{core::handle, logging, utils::dirs};
use tauri_plugin_shell::ShellExt;
use tauri_plugin_shell::ShellExt as _;
let app_handle = handle::Handle::app_handle();
logging!(info, Type::Config, "try to set system dns");
@@ -50,7 +50,7 @@ pub async fn set_public_dns(dns_server: String) {
#[cfg(target_os = "macos")]
pub async fn restore_public_dns() {
use crate::{core::handle, utils::dirs};
use tauri_plugin_shell::ShellExt;
use tauri_plugin_shell::ShellExt as _;
let app_handle = handle::Handle::app_handle();
logging!(info, Type::Config, "try to unset system dns");
let resource_dir = match dirs::app_resources_dir() {