mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2026-01-16 10:11:01 +00:00
refactor/polish ~ fix cargo clippy complaints (unwrap_or_else)
This commit is contained in:
parent
4ddc65f255
commit
d192ebea5b
11 changed files with 24 additions and 24 deletions
|
|
@ -60,7 +60,7 @@ FILE, separated by TABs, to standard output.",
|
|||
println!("{} {}", NAME, VERSION);
|
||||
} else {
|
||||
let serial = matches.opt_present("serial");
|
||||
let delimiters = matches.opt_str("delimiters").unwrap_or("\t".to_owned());
|
||||
let delimiters = matches.opt_str("delimiters").unwrap_or_else(|| "\t".to_owned());
|
||||
paste(matches.free, serial, delimiters);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue