Skip to content
Myr

Fix clippy warning

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

authored by sharkdp · committed by sharkdp · parent 634016b · Browse files · 1 file+1 added−1 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−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/main.rs+1 added-1 removed
200 unmodified lines
201202 // Get the root directory for the search203 let root_dir_buf = matches.free.get(1)204 .and_then(|r| fs::canonicalize(r).ok())205 .unwrap_or(current_dir_buf.clone());205 .unwrap_or_else(|| current_dir_buf.clone());206 let root_dir = root_dir_buf.as_path();207208 // The search will be case-sensitive if the command line flag is set or209 // if the pattern has an uppercase character (smart case).
36 unmodified lines