mirror of
https://github.com/uutils/coreutils.git
synced 2026-05-06 07:26:38 -04:00
fuzz: fix clippy::collapsible_if
This commit is contained in:
@@ -14,7 +14,3 @@ rustflags = ["-C", "target-feature=+crt-static"]
|
||||
[env]
|
||||
# See feat_external_libstdbuf in src/uu/stdbuf/Cargo.toml
|
||||
LIBSTDBUF_DIR = "/usr/local/libexec/coreutils"
|
||||
|
||||
# remove me
|
||||
[build]
|
||||
rustflags = ["-A", "clippy::collapsible_if"]
|
||||
|
||||
@@ -61,10 +61,10 @@ fn generate_cksum_args() -> Vec<String> {
|
||||
args.push("-c".to_string());
|
||||
}
|
||||
|
||||
if rng.random_bool(0.25) {
|
||||
if let Ok(file_path) = generate_random_file() {
|
||||
args.push(file_path);
|
||||
}
|
||||
if rng.random_bool(0.25)
|
||||
&& let Ok(file_path) = generate_random_file()
|
||||
{
|
||||
args.push(file_path);
|
||||
}
|
||||
|
||||
if args.is_empty() || !args.iter().any(|arg| arg.starts_with("file_")) {
|
||||
|
||||
Reference in New Issue
Block a user