diff options
author | Andrew Walbran <qwandor@google.com> | 2024-01-24 15:39:48 +0000 |
---|---|---|
committer | Andrew Walbran <qwandor@google.com> | 2024-01-25 15:16:04 +0000 |
commit | 5c4fb75a3b82de060d26796a28d7ece0af8f995b (patch) | |
tree | f5c1619a9078f0c7482608c8390ca6756c4e1835 | |
parent | b35e61fd556aa75cc80656c8063a48c93998bf87 (diff) | |
download | development-5c4fb75a3b82de060d26796a28d7ece0af8f995b.tar.gz |
Ignore long forms of flags the same as short.
Bug: 317913182
Test: Ran on axum 0.6.20.
Change-Id: I521c54bc3da83085c565ed23f26c3d79c327f406
-rw-r--r-- | tools/cargo_embargo/src/cargo/cargo_out.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/cargo_embargo/src/cargo/cargo_out.rs b/tools/cargo_embargo/src/cargo/cargo_out.rs index a30623899..bb91b8569 100644 --- a/tools/cargo_embargo/src/cargo/cargo_out.rs +++ b/tools/cargo_embargo/src/cargo/cargo_out.rs @@ -358,9 +358,13 @@ impl Crate { _ if arg.starts_with("--edition=") => {} _ if arg.starts_with("--json=") => {} _ if arg.starts_with("-Aclippy") => {} + _ if arg.starts_with("--allow=clippy") => {} _ if arg.starts_with("-Wclippy") => {} + _ if arg.starts_with("--warn=clippy") => {} _ if arg.starts_with("-D") => {} + _ if arg.starts_with("--deny=") => {} _ if arg.starts_with("-W") => {} + _ if arg.starts_with("--warn=") => {} arg => bail!("unsupported rustc argument: {arg:?}"), } |