fix(core): fix warnings
This commit is contained in:
parent
c7047275b0
commit
d0e23ca2a8
|
@ -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()?;
|
||||
|
|
|
@ -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()?;
|
||||
|
|
Loading…
Reference in New Issue
Block a user