diff --git a/fontique/src/collection/mod.rs b/fontique/src/collection/mod.rs index 631a013b..fce20275 100644 --- a/fontique/src/collection/mod.rs +++ b/fontique/src/collection/mod.rs @@ -476,9 +476,9 @@ struct GenericFamilies { system: Option, } -impl<'a, I> Iterator for GenericFamilies +impl Iterator for GenericFamilies where - I: Iterator + 'a, + I: Iterator, { type Item = FamilyId; diff --git a/parley/src/builder.rs b/parley/src/builder.rs index 31def400..980787ad 100644 --- a/parley/src/builder.rs +++ b/parley/src/builder.rs @@ -21,7 +21,7 @@ pub struct RangedBuilder<'a, B: Brush> { pub(crate) fcx: &'a mut FontContext, } -impl<'a, B: Brush> RangedBuilder<'a, B> { +impl RangedBuilder<'_, B> { pub fn push_default(&mut self, property: &StyleProperty) { let resolved = self .lcx @@ -66,7 +66,7 @@ pub struct TreeBuilder<'a, B: Brush> { pub(crate) fcx: &'a mut FontContext, } -impl<'a, B: Brush> TreeBuilder<'a, B> { +impl TreeBuilder<'_, B> { pub fn push_style_span(&mut self, style: TextStyle) { let resolved = self .lcx diff --git a/parley/src/layout/cluster.rs b/parley/src/layout/cluster.rs index e56bc7fa..0084f33e 100644 --- a/parley/src/layout/cluster.rs +++ b/parley/src/layout/cluster.rs @@ -444,7 +444,7 @@ enum GlyphIter<'a> { Slice(core::slice::Iter<'a, Glyph>), } -impl<'a> Iterator for GlyphIter<'a> { +impl Iterator for GlyphIter<'_> { type Item = Glyph; fn next(&mut self) -> Option { diff --git a/parley/src/layout/line/greedy.rs b/parley/src/layout/line/greedy.rs index 3c831a7a..f34f657f 100644 --- a/parley/src/layout/line/greedy.rs +++ b/parley/src/layout/line/greedy.rs @@ -578,7 +578,7 @@ impl<'a, B: Brush> BreakLines<'a, B> { } } -impl<'a, B: Brush> Drop for BreakLines<'a, B> { +impl Drop for BreakLines<'_, B> { fn drop(&mut self) { // Compute the overall width and height of the entire layout // The "width" excludes trailing whitespace. The "full_width" includes it. diff --git a/parley/src/layout/run.rs b/parley/src/layout/run.rs index 147232f8..8388530d 100644 --- a/parley/src/layout/run.rs +++ b/parley/src/layout/run.rs @@ -162,7 +162,7 @@ struct Clusters<'a, B: Brush> { rev: bool, } -impl<'a, B: Brush> Clone for Clusters<'a, B> { +impl Clone for Clusters<'_, B> { fn clone(&self) -> Self { Self { run: self.run, diff --git a/parley/src/shape.rs b/parley/src/shape.rs index ac6823fe..bfcaabab 100644 --- a/parley/src/shape.rs +++ b/parley/src/shape.rs @@ -266,7 +266,7 @@ impl<'a, 'b, B: Brush> FontSelector<'a, 'b, B> { } #[cfg(feature = "std")] -impl<'a, 'b, B: Brush> partition::Selector for FontSelector<'a, 'b, B> { +impl partition::Selector for FontSelector<'_, '_, B> { type SelectedFont = SelectedFont; fn select_font(&mut self, cluster: &mut CharCluster) -> Option { diff --git a/parley/src/style/mod.rs b/parley/src/style/mod.rs index c7e76513..f4289020 100644 --- a/parley/src/style/mod.rs +++ b/parley/src/style/mod.rs @@ -108,7 +108,7 @@ pub struct TextStyle<'a, B: Brush> { pub letter_spacing: f32, } -impl<'a, B: Brush> Default for TextStyle<'a, B> { +impl Default for TextStyle<'_, B> { fn default() -> Self { TextStyle { font_stack: FontStack::Source("sans-serif"),