Move local variable closer to first use

syntax_id
Wilfred Hughes 2023-08-14 08:27:42 +07:00
parent c6be0bc16a
commit f1ba399504
1 changed files with 3 additions and 3 deletions

@ -503,9 +503,6 @@ pub fn parse_args() -> Mode {
};
}
let args: Vec<_> = matches.values_of_os("paths").unwrap_or_default().collect();
info!("CLI arguments: {:?}", args);
let display_width = if let Some(arg_width) = matches.value_of("width") {
arg_width
.parse::<usize>()
@ -578,6 +575,9 @@ pub fn parse_args() -> Mode {
ignore_comments,
};
let args: Vec<_> = matches.values_of_os("paths").unwrap_or_default().collect();
info!("CLI arguments: {:?}", args);
// TODO: document these different ways of calling difftastic.
let (display_path, lhs_path, rhs_path, old_path, in_vcs) = match &args[..] {
[lhs_path, rhs_path] => {