fix(core): fix warnings

This commit is contained in:
Federico Terzi 2021-10-06 19:17:44 +02:00
parent c7047275b0
commit d0e23ca2a8
2 changed files with 2 additions and 2 deletions

View File

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

View File

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