Skip to content

Commit fce8299

Browse files
committed
clippy: allow "cygwin" as value for "target_os"
1 parent dc4abbb commit fce8299

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,9 +619,9 @@ workspace = true
619619
# This is the linting configuration for all crates.
620620
# In order to use these, all crates have `[lints] workspace = true` section.
621621
[workspace.lints.rust]
622-
# Allow "fuzzing" as a "cfg" condition name
622+
# Allow "fuzzing" as a "cfg" condition name and "cygwin" as a value for "target_os"
623623
# https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html
624-
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
624+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)', 'cfg(target_os, values("cygwin"))'] }
625625
#unused_qualifications = "warn" // TODO: fix warnings in uucore, then re-enable this lint
626626

627627
[workspace.lints.clippy]

0 commit comments

Comments
 (0)