From d0e23ca2a8f34132a01cb08bc5130d87808fcf81 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Wed, 6 Oct 2021 19:17:44 +0200 Subject: [PATCH] fix(core): fix warnings --- espanso/src/cli/service/linux.rs | 2 +- espanso/src/cli/service/unix.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/espanso/src/cli/service/linux.rs b/espanso/src/cli/service/linux.rs index 792993c..55ce07e 100644 --- a/espanso/src/cli/service/linux.rs +++ b/espanso/src/cli/service/linux.rs @@ -29,7 +29,7 @@ use crate::{error_eprintln, info_println, warn_eprintln}; const LINUX_SERVICE_NAME: &str = "espanso"; const LINUX_SERVICE_CONTENT: &str = include_str!("../../res/linux/systemd.service"); -const LINUX_SERVICE_FILENAME: &str = &formatcp!("{}.service", LINUX_SERVICE_NAME); +const LINUX_SERVICE_FILENAME: &str = formatcp!("{}.service", LINUX_SERVICE_NAME); pub fn register() -> Result<()> { let service_file = get_service_file_path()?; diff --git a/espanso/src/cli/service/unix.rs b/espanso/src/cli/service/unix.rs index c7d7d4b..327001a 100644 --- a/espanso/src/cli/service/unix.rs +++ b/espanso/src/cli/service/unix.rs @@ -60,7 +60,7 @@ pub fn spawn_launcher(paths_overrides: &PathsOverrides) -> Result<()> { let espanso_exe_path = std::env::current_exe()?; let mut command = std::process::Command::new(&espanso_exe_path.to_string_lossy().to_string()); command.args(&["launcher"]); - command.with_paths_overrides(&paths_overrides); + command.with_paths_overrides(paths_overrides); let mut child = command.spawn()?; let result = child.wait()?;