Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Mar 10, 2023
1 parent 0cd6f98 commit 9a1178a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ pub fn commands<T: AsRef<OsStr>>(path: T) -> Vec<Command> {
cmd.arg("/c")
.arg("start")
.raw_arg("\"\"")
.raw_arg(wrap_in_quotes(path.as_ref()));
.raw_arg(wrap_in_quotes(path));
vec![cmd]
}

pub fn with_command<T: AsRef<OsStr>>(path: T, app: impl Into<String>) -> Command {
let mut cmd = Command::new("cmd");
cmd.arg("/c")
.raw_arg(app.into())
.raw_arg(wrap_in_quotes(path.as_ref()));
.raw_arg(wrap_in_quotes(path));
cmd
}

Expand Down

0 comments on commit 9a1178a

Please sign in to comment.