uv-resolver: remove 'derive(Derivative)' from PubGrubPackage

It looks like the last vestiges of `Derivative` were removed in commit
7eaed07f6c, but the then rendered
superfluous `derive(Derivative)` wasn't removed.
This commit is contained in:
Andrew Gallant 2024-05-20 13:02:43 -04:00 committed by Andrew Gallant
parent eac8221718
commit 9f109f243c

View file

@ -1,5 +1,3 @@
use derivative::Derivative;
use distribution_types::VerbatimParsedUrl; use distribution_types::VerbatimParsedUrl;
use uv_normalize::{ExtraName, PackageName}; 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 /// 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., /// 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. /// `black`). We then discard the virtual packages at the end of the resolution process.
#[derive(Debug, Clone, Eq, Derivative)] #[derive(Debug, Clone, Eq, Hash, PartialEq)]
#[derivative(PartialEq, Hash)]
pub enum PubGrubPackage { pub enum PubGrubPackage {
/// The root package, which is used to start the resolution process. /// The root package, which is used to start the resolution process.
Root(Option<PackageName>), Root(Option<PackageName>),