1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

refactor/polish ~ fix cargo clippy complaints (or_fun_call)

This commit is contained in:
Roy Ivy III 2020-02-06 22:47:47 -06:00
parent 9b145bb6c4
commit 84e26b3d0b
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ fn main() {
let n = args()
.skip(1)
.next()
.unwrap_or("1027".to_string())
.unwrap_or_else(|| "1027".to_string())
.parse::<usize>()
.ok()
.unwrap_or(1027);

View file

@ -30,7 +30,7 @@ fn main() {
let libstdbuf = format!(
"{}/../../{}/{}/deps/liblibstdbuf{}",
manifest_dir,
env::var("CARGO_TARGET_DIR").unwrap_or("target".to_string()),
env::var("CARGO_TARGET_DIR").unwrap_or_else(|_| "target".to_string()),
profile,
platform::DYLIB_EXT
);