From 2a4c28bf673ceef9a25ed92c84c7dce2c526bda2 Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Wed, 9 Aug 2023 18:20:47 +0100 Subject: [PATCH] Remove emit_list. It's not used anywhere. Bug: 293289578 Test: atest cargo_embargo.test Change-Id: I8ab1cbec7fe05997c9b24a8e0b658c092a6046ae --- tools/cargo_embargo/src/cargo_out.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/cargo_embargo/src/cargo_out.rs b/tools/cargo_embargo/src/cargo_out.rs index a47f1f739..29e5cebb2 100644 --- a/tools/cargo_embargo/src/cargo_out.rs +++ b/tools/cargo_embargo/src/cargo_out.rs @@ -65,7 +65,6 @@ pub struct Crate { pub cap_lints: String, pub static_libs: Vec, pub shared_libs: Vec, - pub emit_list: String, pub edition: String, pub package_dir: PathBuf, // canonicalized pub main_src: PathBuf, // relative to package_dir @@ -337,9 +336,6 @@ impl Crate { out.shared_libs.push(arg.to_string()); } } - _ if arg.starts_with("--emit=") => { - out.emit_list = arg.strip_prefix("--emit=").unwrap().to_string(); - } _ if !arg.starts_with('-') => { let src_path = Path::new(arg); // Canonicalize the path because: @@ -375,6 +371,7 @@ impl Crate { arg_iter.next().unwrap(); } _ if arg.starts_with("--error-format=") => {} + _ if arg.starts_with("--emit=") => {} _ if arg.starts_with("--edition=") => {} _ if arg.starts_with("--json=") => {} _ if arg.starts_with("-Aclippy") => {}