From 9a1178a9d32c2b4da12cdb8542b3b36806825d7d Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 10 Mar 2023 09:10:50 +0100 Subject: [PATCH] refactor --- src/windows.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows.rs b/src/windows.rs index e769a15..4c4bf71 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -10,7 +10,7 @@ pub fn commands>(path: T) -> Vec { cmd.arg("/c") .arg("start") .raw_arg("\"\"") - .raw_arg(wrap_in_quotes(path.as_ref())); + .raw_arg(wrap_in_quotes(path)); vec![cmd] } @@ -18,7 +18,7 @@ pub fn with_command>(path: T, app: impl Into) -> 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 }