diff --git a/src/registry.rs b/src/registry.rs index 6efcb1c..74714ef 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -299,7 +299,7 @@ pub enum NpmPackageVersionDistInfoIntegrity<'a> { LegacySha1Hex(&'a str), } -impl<'a> NpmPackageVersionDistInfoIntegrity<'a> { +impl NpmPackageVersionDistInfoIntegrity<'_> { pub fn for_lockfile(&self) -> String { match self { NpmPackageVersionDistInfoIntegrity::Integrity { diff --git a/src/resolution/collections.rs b/src/resolution/collections.rs index c2768be..7bf81d5 100644 --- a/src/resolution/collections.rs +++ b/src/resolution/collections.rs @@ -11,7 +11,7 @@ pub struct OneDirectionalLinkedList<'a, T> { value: OneDirectionalLinkedListItem<'a, T>, } -impl<'a, T> Default for OneDirectionalLinkedList<'a, T> { +impl Default for OneDirectionalLinkedList<'_, T> { fn default() -> Self { Self { parent: None,