diff --git a/src/commands.rs b/src/commands.rs index c6adc21..f1081dd 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -209,7 +209,10 @@ where C: Commands, M: MaybeSend + Sync + Clone + Fn(U) -> T, { - type ByRef<'this> = &'this mut Self where Self: 'this; + type ByRef<'this> + = &'this mut Self + where + Self: 'this; #[inline] fn by_ref(&mut self) -> Self::ByRef<'_> { @@ -237,7 +240,10 @@ impl Commands for &mut C where C: Commands, { - type ByRef<'this> = C::ByRef<'this> where Self: 'this; + type ByRef<'this> + = C::ByRef<'this> + where + Self: 'this; #[inline] fn by_ref(&mut self) -> Self::ByRef<'_> { diff --git a/src/commands/buf.rs b/src/commands/buf.rs index 818cb00..a2aa842 100644 --- a/src/commands/buf.rs +++ b/src/commands/buf.rs @@ -23,7 +23,10 @@ impl CommandsBuf { } impl Commands for CommandsBuf { - type ByRef<'this> = &'this mut Self where Self: 'this; + type ByRef<'this> + = &'this mut Self + where + Self: 'this; #[inline] fn by_ref(&mut self) -> Self::ByRef<'_> { diff --git a/src/compat/hex.rs b/src/compat/hex.rs index 132bccc..03c543e 100644 --- a/src/compat/hex.rs +++ b/src/compat/hex.rs @@ -77,7 +77,7 @@ impl<'de, const N: usize> de::Deserialize<'de> for Hex { struct Visitor; -impl<'de, const N: usize> de::Visitor<'de> for Visitor { +impl de::Visitor<'_> for Visitor { type Value = Hex; #[inline] diff --git a/src/context.rs b/src/context.rs index 75322e8..8d004b8 100644 --- a/src/context.rs +++ b/src/context.rs @@ -17,7 +17,7 @@ pub(crate) struct CtxtRef<'a> { pub(crate) style: &'a Style, } -impl<'a> CtxtRef<'a> { +impl CtxtRef<'_> { #[inline] pub(crate) fn warning_text(&self) -> iced::theme::Text { crate::style::warning_text(self.service.theme()) @@ -76,7 +76,7 @@ pub(crate) struct Ctxt<'a> { pub(crate) assets: &'a mut Assets, } -impl<'a> Ctxt<'a> { +impl Ctxt<'_> { /// Push history. pub(crate) fn push_history(&mut self, page: Page) { self.history.push_history(self.assets, page); diff --git a/src/database/episodes.rs b/src/database/episodes.rs index a812e2e..1df7f25 100644 --- a/src/database/episodes.rs +++ b/src/database/episodes.rs @@ -60,7 +60,7 @@ impl<'a> EpisodeRef<'a> { } } -impl<'a> Deref for EpisodeRef<'a> { +impl Deref for EpisodeRef<'_> { type Target = Episode; #[inline] @@ -229,7 +229,7 @@ impl<'a> Iterator for Iter<'a> { } } -impl<'a> DoubleEndedIterator for Iter<'a> { +impl DoubleEndedIterator for Iter<'_> { #[inline] fn next_back(&mut self) -> Option { let id = self.tail.take()?; diff --git a/src/database/iter.rs b/src/database/iter.rs index 12ce89c..7050d75 100644 --- a/src/database/iter.rs +++ b/src/database/iter.rs @@ -87,7 +87,7 @@ where } } -impl<'a, I, M> Clone for Iter<'a, I, M> +impl Clone for Iter<'_, I, M> where I: Clone, M: Map, diff --git a/src/database/seasons.rs b/src/database/seasons.rs index c68e84f..07b5091 100644 --- a/src/database/seasons.rs +++ b/src/database/seasons.rs @@ -60,7 +60,7 @@ impl fmt::Debug for SeasonRef<'_> { } } -impl<'a> Deref for SeasonRef<'a> { +impl Deref for SeasonRef<'_> { type Target = Season; #[inline] @@ -202,7 +202,7 @@ impl<'a> Iterator for Iter<'a> { } } -impl<'a> DoubleEndedIterator for Iter<'a> { +impl DoubleEndedIterator for Iter<'_> { #[inline] fn next_back(&mut self) -> Option { let id = self.tail.take()?; diff --git a/src/model.rs b/src/model.rs index cdc862d..bf71781 100644 --- a/src/model.rs +++ b/src/model.rs @@ -933,7 +933,7 @@ pub(crate) mod btree_as_vec { K: Ord + de::Deserialize<'de>, V: de::Deserialize<'de>, { - return deserializer.deserialize_seq(Visitor(BTreeMap::new())); + deserializer.deserialize_seq(Visitor(BTreeMap::new())) } impl<'de, K, V> de::Visitor<'de> for Visitor @@ -1297,7 +1297,7 @@ impl<'de> Deserialize<'de> for ImageV2 { { struct ImageV2Visitor; - impl<'de> de::Visitor<'de> for ImageV2Visitor { + impl de::Visitor<'_> for ImageV2Visitor { type Value = ImageV2; #[inline] diff --git a/src/model/etag.rs b/src/model/etag.rs index 46e523e..b137f95 100644 --- a/src/model/etag.rs +++ b/src/model/etag.rs @@ -67,7 +67,7 @@ impl ser::Serialize for Etag { struct Visitor; -impl<'de> de::Visitor<'de> for Visitor { +impl de::Visitor<'_> for Visitor { type Value = Etag; #[inline] diff --git a/src/model/raw.rs b/src/model/raw.rs index 7501018..788b2bb 100644 --- a/src/model/raw.rs +++ b/src/model/raw.rs @@ -84,7 +84,7 @@ impl ser::Serialize for Raw { struct Visitor; -impl<'de, const N: usize> de::Visitor<'de> for Visitor { +impl de::Visitor<'_> for Visitor { type Value = Raw; #[inline]