Refactorying main.rs : remove unused variable (empty_pattern)

This commit is contained in:
Ubuntu 2017-11-29 03:28:31 +00:00 committed by David Peter
parent e2b8a3cce2
commit c165ff0546

View file

@ -48,8 +48,7 @@ fn main() {
let matches = app::build_app().get_matches();
// Get the search pattern
let empty_pattern = String::new();
let pattern = matches.value_of("pattern").unwrap_or(&empty_pattern);
let pattern = matches.value_of("pattern").unwrap_or("");
// Get the current working directory
let current_dir = Path::new(".");