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: jobs:
build: build:
strategy: strategy:
fail-fast: false
matrix: matrix:
os: [windows-latest, macos-latest, ubuntu-latest] 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); info_println!("creating service file in {:?}", service_file);
let espanso_path = get_binary_path().expect("unable to get espanso executable path"); let espanso_path = get_binary_path().expect("unable to get espanso executable path");
let service_content = String::from(LINUX_SERVICE_CONTENT).replace( let service_content = String::from(LINUX_SERVICE_CONTENT)
"{{{espanso_path}}}", .replace("{{{espanso_path}}}", &espanso_path.to_string_lossy());
&espanso_path.to_string_lossy().to_string(),
);
std::fs::write(service_file, service_content)?; std::fs::write(service_file, service_content)?;