fix(misc): fix clippy warnings

This commit is contained in:
Federico Terzi 2022-08-24 22:02:44 +02:00
parent 7a6f0e84f4
commit fbdd46bf8c
2 changed files with 3 additions and 4 deletions

View File

@ -16,6 +16,7 @@ env:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]

View File

@ -42,10 +42,8 @@ pub fn register() -> Result<()> {
info_println!("creating service file in {:?}", service_file);
let espanso_path = get_binary_path().expect("unable to get espanso executable path");
let service_content = String::from(LINUX_SERVICE_CONTENT).replace(
"{{{espanso_path}}}",
&espanso_path.to_string_lossy().to_string(),
);
let service_content = String::from(LINUX_SERVICE_CONTENT)
.replace("{{{espanso_path}}}", &espanso_path.to_string_lossy());
std::fs::write(service_file, service_content)?;