Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed May 17, 2023
1 parent 3bbac36 commit 1e08246
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/shell/windows_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ pub fn maybe_fix_windows_path(path: &str) -> Option<String> {
return None;
}

use std::process::Command;
let output = Command::new("cygpath").arg(path).output().ok()?;
let output = std::process::Command::new("cygpath")
.arg(path)
.output()
.ok()?;
if output.status.success() {
String::from_utf8(output.stdout).ok()
} else {
Expand Down

0 comments on commit 1e08246

Please sign in to comment.