fix: code lint

This commit is contained in:
huzibaca
2024-09-24 20:06:25 +08:00
parent 2ca7310baf
commit 4b234a3211
7 changed files with 24 additions and 32 deletions

View File

@@ -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()?;