Remove superfluous path.replace

See #153
This commit is contained in:
sharkdp 2017-11-10 20:03:42 +01:00 committed by David Peter
parent c022528f54
commit 26f71dd21a

View file

@ -60,12 +60,7 @@ fn main() {
// Get the root directory for the search // Get the root directory for the search
let mut root_dir_buf = match matches.value_of("path") { let mut root_dir_buf = match matches.value_of("path") {
Some(path) => { Some(path) => PathBuf::from(path),
#[cfg(windows)]
let path = path.replace('/', "\\");
PathBuf::from(path)
}
None => current_dir.to_path_buf(), None => current_dir.to_path_buf(),
}; };
if !fshelper::is_dir(&root_dir_buf) { if !fshelper::is_dir(&root_dir_buf) {