mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-19 02:10:34 +01:00
Refactorying main.rs : remove unused variable (empty_pattern)
This commit is contained in:
parent
e2b8a3cce2
commit
c165ff0546
1 changed files with 1 additions and 2 deletions
|
@ -48,8 +48,7 @@ fn main() {
|
||||||
let matches = app::build_app().get_matches();
|
let matches = app::build_app().get_matches();
|
||||||
|
|
||||||
// Get the search pattern
|
// Get the search pattern
|
||||||
let empty_pattern = String::new();
|
let pattern = matches.value_of("pattern").unwrap_or("");
|
||||||
let pattern = matches.value_of("pattern").unwrap_or(&empty_pattern);
|
|
||||||
|
|
||||||
// Get the current working directory
|
// Get the current working directory
|
||||||
let current_dir = Path::new(".");
|
let current_dir = Path::new(".");
|
||||||
|
|
Loading…
Reference in a new issue