We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02bea52 commit 006ee40Copy full SHA for 006ee40
crates/uv-pypi-types/src/conflicts.rs
@@ -194,7 +194,7 @@ impl Conflicts {
194
.replaced_item(&canonical_item, (**sub).clone())
195
.expect("`ConflictItem` should be in `ConflictSet`");
196
if !direct_conflict_sets.contains(&new_set) {
197
- new_set.set_as_inferred_conflict();
+ new_set = new_set.with_inferred_conflict();
198
if !transitive_conflict_sets.contains(&new_set) {
199
new_conflict_sets.insert(new_set);
200
}
@@ -280,8 +280,9 @@ impl ConflictSet {
280
281
/// Mark this [`ConflictSet`] as being inferred from directly
282
/// defined conflicts.
283
- fn set_as_inferred_conflict(&mut self) {
+ fn with_inferred_conflict(mut self) -> Self {
284
self.is_inferred_conflict = true;
285
+ self
286
287
288
0 commit comments