diff --git a/src/main.rs b/src/main.rs index 57e2a29..0b42b25 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(".");