Fix clippy warning

This commit is contained in:
sharkdp 2017-06-05 18:12:35 +02:00
parent 634016b9a0
commit db8d0cc342
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ fn main() {
// Get the root directory for the search
let root_dir_buf = matches.free.get(1)
.and_then(|r| fs::canonicalize(r).ok())
.unwrap_or(current_dir_buf.clone());
.unwrap_or_else(|| current_dir_buf.clone());
let root_dir = root_dir_buf.as_path();
// The search will be case-sensitive if the command line flag is set or