mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
`matching_installations` is BTreeSet already, no need to deduplicate it. https://github.com/astral-sh/uv/pull/4841#discussion_r1667241722
This commit is contained in:
parent
bcb2568f47
commit
1f454f3a67
2 changed files with 3 additions and 3 deletions
|
@ -228,8 +228,8 @@ static EXTERNALLY_MANAGED: &str = "[externally-managed]
|
||||||
Error=This Python installation is managed by uv and should not be modified.
|
Error=This Python installation is managed by uv and should not be modified.
|
||||||
";
|
";
|
||||||
|
|
||||||
/// A uv-managed Python installation on the current system..
|
/// A uv-managed Python installation on the current system.
|
||||||
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
|
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd)]
|
||||||
pub struct ManagedPythonInstallation {
|
pub struct ManagedPythonInstallation {
|
||||||
/// The path to the top-level directory of the installed Python.
|
/// The path to the top-level directory of the installed Python.
|
||||||
path: PathBuf,
|
path: PathBuf,
|
||||||
|
|
|
@ -84,7 +84,7 @@ pub(crate) async fn uninstall(
|
||||||
return Ok(ExitStatus::Failure);
|
return Ok(ExitStatus::Failure);
|
||||||
}
|
}
|
||||||
|
|
||||||
let tasks = futures::stream::iter(matching_installations.iter().unique())
|
let tasks = futures::stream::iter(matching_installations.iter())
|
||||||
.map(|installation| async {
|
.map(|installation| async {
|
||||||
(
|
(
|
||||||
installation.key(),
|
installation.key(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue