From 4b53e1063049841bbe671458c7d5a06757b2a8c9 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Sun, 4 Jan 2026 16:59:27 +0100 Subject: [PATCH 1/2] clippy: allow "cygwin" as value for "target_os" --- Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6d34d5c1e..6a5796a46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -619,9 +619,12 @@ workspace = true # This is the linting configuration for all crates. # In order to use these, all crates have `[lints] workspace = true` section. [workspace.lints.rust] -# Allow "fuzzing" as a "cfg" condition name +# Allow "fuzzing" as a "cfg" condition name and "cygwin" as a value for "target_os" # https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html -unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(fuzzing)', + 'cfg(target_os, values("cygwin"))', +] } #unused_qualifications = "warn" // TODO: fix warnings in uucore, then re-enable this lint [workspace.lints.clippy] From 2c5e00e8dc502235a56059ac883433de4ee1a877 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Sun, 4 Jan 2026 17:48:35 +0100 Subject: [PATCH 2/2] libstdbuf: enable workspace lints --- src/uu/stdbuf/src/libstdbuf/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uu/stdbuf/src/libstdbuf/Cargo.toml b/src/uu/stdbuf/src/libstdbuf/Cargo.toml index 6460c441e..8a92fcbb5 100644 --- a/src/uu/stdbuf/src/libstdbuf/Cargo.toml +++ b/src/uu/stdbuf/src/libstdbuf/Cargo.toml @@ -10,6 +10,9 @@ keywords.workspace = true categories.workspace = true edition.workspace = true +[lints] +workspace = true + [lib] name = "stdbuf" path = "src/libstdbuf.rs"