diff --git a/src/main.rs b/src/main.rs index 8ad8816b..a64ecbb1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -343,7 +343,7 @@ impl From for cargo_semver_checks::Check { // Treat --features="" as a no-op like cargo does let trim_features = |features: &mut Vec| { - features.retain(|feature| !feature.is_empty()); + features.retain(|feature| !(feature.is_empty() || feature == "\"\"")); }; trim_features(&mut current_features); trim_features(&mut baseline_features); @@ -370,8 +370,8 @@ fn features_empty_string_is_no_op() { let empty_features = CheckRelease { features: vec![String::new()], - current_features: vec![String::new(), String::new()], - baseline_features: vec![String::new()], + current_features: vec![String::new(), "\"\"".to_string()], + baseline_features: vec!["\"\"".to_string()], ..no_features.clone() };