Ignore long forms of flags the same as short. Bug: 317913182 Test: Ran on axum 0.6.20. Change-Id: I521c54bc3da83085c565ed23f26c3d79c327f406
diff --git a/tools/cargo_embargo/src/cargo/cargo_out.rs b/tools/cargo_embargo/src/cargo/cargo_out.rs index a306238..bb91b85 100644 --- a/tools/cargo_embargo/src/cargo/cargo_out.rs +++ b/tools/cargo_embargo/src/cargo/cargo_out.rs
@@ -358,9 +358,13 @@ _ 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:?}"), }