mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-09-15 19:26:58 +02:00
chore: clippy/fmt
This commit is contained in:
parent
3a3888a2d6
commit
f1a8b42cfa
2 changed files with 5 additions and 2 deletions
|
@ -328,7 +328,7 @@ fn files(dir: &Path) -> Vec<PathBuf> {
|
|||
pub fn open_program(file_name: &str, str: &str) {
|
||||
let expanded = str.replace("{app_name}", file_name);
|
||||
let launch_command_parts: Vec<&str> = expanded.split_whitespace().collect();
|
||||
if let Err(err) = Command::new(&launch_command_parts[0])
|
||||
if let Err(err) = Command::new(launch_command_parts[0])
|
||||
.args(&launch_command_parts[1..])
|
||||
.stdout(Stdio::null())
|
||||
.stderr(Stdio::null())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue