fix(misc): fix clippy warnings
This commit is contained in:
parent
7a6f0e84f4
commit
fbdd46bf8c
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -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]
|
||||||
|
|
||||||
|
|
|
@ -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)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user