1
Fork 0
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:
Roy Ivy III 2019-12-26 21:39:42 -06:00
parent 4ddc65f255
commit d192ebea5b
11 changed files with 24 additions and 24 deletions

View file

@ -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);
}