From e30ddc4f94866e690462d89d5d7332e456a93765 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 19 Mar 2024 12:02:53 -0500 Subject: [PATCH] refactor(toml): Remove a variable that doesnt need tracking --- src/cargo/util/toml/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cargo/util/toml/mod.rs b/src/cargo/util/toml/mod.rs index 3a4fd6847..3dbff95a4 100644 --- a/src/cargo/util/toml/mod.rs +++ b/src/cargo/util/toml/mod.rs @@ -926,7 +926,6 @@ pub fn to_real_manifest( .map(|mw| field_inherit_with(mw, "include", || inherit()?.include())) .transpose()? .unwrap_or_default(); - let empty_features = BTreeMap::new(); let summary = Summary::new( pkgid, @@ -934,7 +933,7 @@ pub fn to_real_manifest( &original_toml .features .as_ref() - .unwrap_or(&empty_features) + .unwrap_or(&Default::default()) .iter() .map(|(k, v)| { (