Skip to content
Myr

Refactorying main.rs : remove unused variable (empty_pattern)

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

authored by Ubuntu · committed by David Peter · parent e2b8a3c · Browse files · 1 file+1 added−2 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−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:src/main.rs+1 added-2 removed
46 unmodified lines
47fn main() {48 let matches = app::build_app().get_matches();4950 // Get the search pattern51 let empty_pattern = String::new();52 let pattern = matches.value_of("pattern").unwrap_or(&empty_pattern);51 let pattern = matches.value_of("pattern").unwrap_or("");5253 // Get the current working directory54 let current_dir = Path::new(".");55 if !fshelper::is_dir(current_dir) {
106 unmodified lines