From 9f109f243ca8024277f689d668f11c2553a0731a Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Mon, 20 May 2024 13:02:43 -0400 Subject: [PATCH] uv-resolver: remove 'derive(Derivative)' from PubGrubPackage It looks like the last vestiges of `Derivative` were removed in commit 7eaed07f6c2da361205cca5e2a4ed56835e2d390, but the then rendered superfluous `derive(Derivative)` wasn't removed. --- crates/uv-resolver/src/pubgrub/package.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/uv-resolver/src/pubgrub/package.rs b/crates/uv-resolver/src/pubgrub/package.rs index f6a0d69a8..c82add503 100644 --- a/crates/uv-resolver/src/pubgrub/package.rs +++ b/crates/uv-resolver/src/pubgrub/package.rs @@ -1,5 +1,3 @@ -use derivative::Derivative; - use distribution_types::VerbatimParsedUrl; use uv_normalize::{ExtraName, PackageName}; @@ -12,8 +10,7 @@ use crate::resolver::Urls; /// 2. Uses the same strategy as pip and posy to handle extras: for each extra, we create a virtual /// package (e.g., `black[colorama]`), and mark it as a dependency of the real package (e.g., /// `black`). We then discard the virtual packages at the end of the resolution process. -#[derive(Debug, Clone, Eq, Derivative)] -#[derivative(PartialEq, Hash)] +#[derive(Debug, Clone, Eq, Hash, PartialEq)] pub enum PubGrubPackage { /// The root package, which is used to start the resolution process. Root(Option),