diff --git a/src/internationalization/mod.rs b/src/internationalization/mod.rs index 0676b32..08f29ca 100644 --- a/src/internationalization/mod.rs +++ b/src/internationalization/mod.rs @@ -9,7 +9,7 @@ pub(crate) static COLLATOR: Lazy> = Lazy::new(|| Mutex::new(Coll pub(crate) struct LocaleFromLanguageIdentifier<'a>(&'a LanguageIdentifier); -impl<'a> Deref for LocaleFromLanguageIdentifier<'a> { +impl Deref for LocaleFromLanguageIdentifier<'_> { type Target = LanguageIdentifier; fn deref(&self) -> &Self::Target { @@ -17,7 +17,7 @@ impl<'a> Deref for LocaleFromLanguageIdentifier<'a> { } } -impl<'a> From> for Locale { +impl From> for Locale { fn from(language_identifier: LocaleFromLanguageIdentifier) -> Self { language_identifier .to_string() diff --git a/src/utils/reverse_ord_option.rs b/src/utils/reverse_ord_option.rs index a7ccbfd..ea4bcb6 100644 --- a/src/utils/reverse_ord_option.rs +++ b/src/utils/reverse_ord_option.rs @@ -5,7 +5,7 @@ to reverse that. */ #[derive(PartialEq)] pub(crate) struct ReverseOrdOption<'a, T>(&'a Option); -impl<'a, T> Deref for ReverseOrdOption<'a, T> { +impl Deref for ReverseOrdOption<'_, T> { type Target = Option; fn deref(&self) -> &Self::Target { @@ -13,15 +13,15 @@ impl<'a, T> Deref for ReverseOrdOption<'a, T> { } } -impl<'a, T: Ord> Eq for ReverseOrdOption<'a, T> {} +impl Eq for ReverseOrdOption<'_, T> {} -impl<'a, T: Ord> PartialOrd for ReverseOrdOption<'a, T> { +impl PartialOrd for ReverseOrdOption<'_, T> { fn partial_cmp(&self, other: &Self) -> Option { Some(self.cmp(other)) } } -impl<'a, T: Ord> Ord for ReverseOrdOption<'a, T> { +impl Ord for ReverseOrdOption<'_, T> { fn cmp(&self, other: &Self) -> Ordering { match (self.as_ref(), other.as_ref()) { (None, None) => Ordering::Equal,