mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #10054 from cakebaker/cargo_toml_add_cygwin_to_unexpected_cfgs
clippy: allow "cygwin" as value for "target_os"
This commit is contained in:
+5
-2
@@ -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]
|
||||
|
||||
@@ -10,6 +10,9 @@ keywords.workspace = true
|
||||
categories.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[lib]
|
||||
name = "stdbuf"
|
||||
path = "src/libstdbuf.rs"
|
||||
|
||||
Reference in New Issue
Block a user