Skip to content

Commit 0d7fe77

Browse files
committed
Fix test case
1 parent 3786b27 commit 0d7fe77

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/cargo/core/workspace.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,9 +1318,8 @@ impl<'cfg> Workspace<'cfg> {
13181318
.flatten()
13191319
.unique()
13201320
.filter(|element| {
1321-
!cli_features
1322-
.features
1323-
.contains(&FeatureValue::new(InternedString::new(element)))
1321+
let feature = FeatureValue::new(InternedString::new(element));
1322+
!cli_features.features.contains(&feature) && !found_features.contains(&feature)
13241323
})
13251324
.sorted()
13261325
.take(5)

0 commit comments

Comments
 (0)