Revert uninstall deduplication changes from #4841 (#4842)

`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:
Jo 2024-07-07 03:16:52 +08:00 committed by GitHub
parent bcb2568f47
commit 1f454f3a67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -228,8 +228,8 @@ static EXTERNALLY_MANAGED: &str = "[externally-managed]
Error=This Python installation is managed by uv and should not be modified.
";
/// A uv-managed Python installation on the current system..
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
/// A uv-managed Python installation on the current system.
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd)]
pub struct ManagedPythonInstallation {
/// The path to the top-level directory of the installed Python.
path: PathBuf,

View file

@ -84,7 +84,7 @@ pub(crate) async fn uninstall(
return Ok(ExitStatus::Failure);
}
let tasks = futures::stream::iter(matching_installations.iter().unique())
let tasks = futures::stream::iter(matching_installations.iter())
.map(|installation| async {
(
installation.key(),