From 0920941fe4e0a99d6431355b0cb56e0e217eeb74 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Fri, 10 Nov 2017 20:03:42 +0100 Subject: [PATCH] Remove superfluous path.replace See #153 --- src/main.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 98e6096b5..1debe945a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,9 +61,6 @@ fn main() { // Get the root directory for the search let mut root_dir_buf = match matches.value_of("path") { Some(path) => { - #[cfg(windows)] - let path = path.replace('/', "\\"); - PathBuf::from(path) } None => current_dir.to_path_buf(),