mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 07:12:44 +00:00
Merge pull request #4536 from sylvestre/arm
build.rs: ignore a clippy warning: match_same_arms
This commit is contained in:
commit
c4820ef97f
1 changed files with 2 additions and 0 deletions
2
build.rs
2
build.rs
|
@ -20,6 +20,8 @@ pub fn main() {
|
|||
for (key, val) in env::vars() {
|
||||
if val == "1" && key.starts_with(ENV_FEATURE_PREFIX) {
|
||||
let krate = key[ENV_FEATURE_PREFIX.len()..].to_lowercase();
|
||||
// Allow this as we have a bunch of info in the comments
|
||||
#[allow(clippy::match_same_arms)]
|
||||
match krate.as_ref() {
|
||||
"default" | "macos" | "unix" | "windows" | "selinux" | "zip" => continue, // common/standard feature names
|
||||
"nightly" | "test_unimplemented" => continue, // crate-local custom features
|
||||
|
|
Loading…
Reference in a new issue