mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Use unique()
instead of collecting
This commit is contained in:
parent
3080b5882c
commit
539b02ef4a
1 changed files with 2 additions and 2 deletions
|
@ -3,6 +3,7 @@ use std::fmt::Formatter;
|
|||
use std::sync::Arc;
|
||||
|
||||
use indexmap::IndexSet;
|
||||
use itertools::Itertools;
|
||||
use owo_colors::OwoColorize;
|
||||
use pubgrub::{
|
||||
DefaultStringReporter, DerivationTree, Derived, External, Range, Ranges, Reporter, Term,
|
||||
|
@ -416,8 +417,7 @@ impl NoSolutionError {
|
|||
.packages()
|
||||
.into_iter()
|
||||
.filter_map(|p| p.name())
|
||||
.collect::<rustc_hash::FxHashSet<_>>()
|
||||
.into_iter()
|
||||
.unique()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue