Skip to content
Myr

Remove superfluous path.replace

Before adoption: this commit came in with the history the project adopted, so no landing records it.

See #153

authored by sharkdp · committed by David Peter · parent c022528 · Browse files · 1 file+1 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−6 removed

  • other:+1 added−6 removed

1 file+1 added−6 removed

modified:src/main.rs+1 added-6 removed
58 unmodified lines
59 }6061 // Get the root directory for the search62 let mut root_dir_buf = match matches.value_of("path") {63 Some(path) => {64 #[cfg(windows)]65 let path = path.replace('/', "\\");6667 PathBuf::from(path)68 }63 Some(path) => PathBuf::from(path),64 None => current_dir.to_path_buf(),65 };66 if !fshelper::is_dir(&root_dir_buf) {67 error(&format!(
93 unmodified lines