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:
parent
9b145bb6c4
commit
84e26b3d0b
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ fn main() {
|
||||||
let n = args()
|
let n = args()
|
||||||
.skip(1)
|
.skip(1)
|
||||||
.next()
|
.next()
|
||||||
.unwrap_or("1027".to_string())
|
.unwrap_or_else(|| "1027".to_string())
|
||||||
.parse::<usize>()
|
.parse::<usize>()
|
||||||
.ok()
|
.ok()
|
||||||
.unwrap_or(1027);
|
.unwrap_or(1027);
|
||||||
|
|
|
@ -30,7 +30,7 @@ fn main() {
|
||||||
let libstdbuf = format!(
|
let libstdbuf = format!(
|
||||||
"{}/../../{}/{}/deps/liblibstdbuf{}",
|
"{}/../../{}/{}/deps/liblibstdbuf{}",
|
||||||
manifest_dir,
|
manifest_dir,
|
||||||
env::var("CARGO_TARGET_DIR").unwrap_or("target".to_string()),
|
env::var("CARGO_TARGET_DIR").unwrap_or_else(|_| "target".to_string()),
|
||||||
profile,
|
profile,
|
||||||
platform::DYLIB_EXT
|
platform::DYLIB_EXT
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue