mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
fix: code lint
This commit is contained in:
@@ -137,7 +137,7 @@ pub async fn install_service(passwd: String) -> Result<()> {
|
||||
.output()?;
|
||||
let output = sudo(
|
||||
&passwd,
|
||||
format!("{}", installer_path.to_string_lossy().replace(" ", "\\ ")),
|
||||
installer_path.to_string_lossy().replace(" ", "\\ ").to_string(),
|
||||
)
|
||||
.output()?;
|
||||
|
||||
@@ -244,7 +244,7 @@ pub async fn uninstall_service(passwd: String) -> Result<()> {
|
||||
.output()?;
|
||||
let output = sudo(
|
||||
&passwd,
|
||||
format!("{}", uninstaller_path.to_string_lossy().replace(" ", "\\ ")),
|
||||
uninstaller_path.to_string_lossy().replace(" ", "\\ ").to_string(),
|
||||
)
|
||||
.output()?;
|
||||
|
||||
|
||||
@@ -66,12 +66,10 @@ fn get_bypass() -> String {
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
let bypass = if custom_bypass.is_empty() {
|
||||
DEFAULT_BYPASS.to_string()
|
||||
} else if use_default {
|
||||
format!("{},{}", DEFAULT_BYPASS, custom_bypass)
|
||||
} else {
|
||||
if use_default {
|
||||
format!("{},{}", DEFAULT_BYPASS, custom_bypass)
|
||||
} else {
|
||||
custom_bypass
|
||||
}
|
||||
custom_bypass
|
||||
};
|
||||
|
||||
bypass
|
||||
|
||||
Reference in New Issue
Block a user