File tree Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ pub struct PathSegmentsIter<'a> {
265
265
last_point : Point ,
266
266
}
267
267
268
- impl < ' a > PathSegmentsIter < ' a > {
268
+ impl PathSegmentsIter < ' _ > {
269
269
/// Sets the auto closing mode. Off by default.
270
270
///
271
271
/// When enabled, emits an additional `PathSegment::Line` from the current position
@@ -331,7 +331,7 @@ impl<'a> PathSegmentsIter<'a> {
331
331
}
332
332
}
333
333
334
- impl < ' a > Iterator for PathSegmentsIter < ' a > {
334
+ impl Iterator for PathSegmentsIter < ' _ > {
335
335
type Item = PathSegment ;
336
336
337
337
fn next ( & mut self ) -> Option < Self :: Item > {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ struct SwappableBuilders<'a> {
23
23
outer : & ' a mut PathBuilder ,
24
24
}
25
25
26
- impl < ' a > SwappableBuilders < ' a > {
26
+ impl SwappableBuilders < ' _ > {
27
27
fn swap ( & mut self ) {
28
28
// Skia swaps pointers to inner and outer builders during joining,
29
29
// but not builders itself. So a simple `core::mem::swap` will produce invalid results.
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ pub struct PathEdgeIter<'a> {
269
269
needs_close_line : bool ,
270
270
}
271
271
272
- impl < ' a > PathEdgeIter < ' a > {
272
+ impl PathEdgeIter < ' _ > {
273
273
fn close_line ( & mut self ) -> Option < PathEdge > {
274
274
self . needs_close_line = false ;
275
275
@@ -278,7 +278,7 @@ impl<'a> PathEdgeIter<'a> {
278
278
}
279
279
}
280
280
281
- impl < ' a > Iterator for PathEdgeIter < ' a > {
281
+ impl Iterator for PathEdgeIter < ' _ > {
282
282
type Item = PathEdge ;
283
283
284
284
fn next ( & mut self ) -> Option < Self :: Item > {
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ impl Default for Paint<'_> {
86
86
}
87
87
}
88
88
89
- impl < ' a > Paint < ' a > {
89
+ impl Paint < ' _ > {
90
90
/// Sets a paint source to a solid color.
91
91
pub fn set_color ( & mut self , color : Color ) {
92
92
self . shader = Shader :: SolidColor ( color) ;
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ pub enum Stage {
143
143
144
144
pub const STAGES_COUNT : usize = Stage :: GammaCompressSrgb as usize + 1 ;
145
145
146
- impl < ' a > PixmapRef < ' a > {
146
+ impl PixmapRef < ' _ > {
147
147
#[ inline( always) ]
148
148
pub ( crate ) fn gather ( & self , index : u32x8 ) -> [ PremultipliedColorU8 ; highp:: STAGE_WIDTH ] {
149
149
let index: [ u32 ; 8 ] = bytemuck:: cast ( index) ;
@@ -161,7 +161,7 @@ impl<'a> PixmapRef<'a> {
161
161
}
162
162
}
163
163
164
- impl < ' a > SubPixmapMut < ' a > {
164
+ impl SubPixmapMut < ' _ > {
165
165
#[ inline( always) ]
166
166
pub ( crate ) fn offset ( & self , dx : usize , dy : usize ) -> usize {
167
167
self . real_width * dy + dx
Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ pub struct SubPixmapMut<'a> {
571
571
pub real_width : usize ,
572
572
}
573
573
574
- impl < ' a > SubPixmapMut < ' a > {
574
+ impl SubPixmapMut < ' _ > {
575
575
/// Returns a mutable slice of pixels.
576
576
pub fn pixels_mut ( & mut self ) -> & mut [ PremultipliedColorU8 ] {
577
577
bytemuck:: cast_slice_mut ( self . data )
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ pub enum Shader<'a> {
56
56
Pattern ( Pattern < ' a > ) ,
57
57
}
58
58
59
- impl < ' a > Shader < ' a > {
59
+ impl Shader < ' _ > {
60
60
/// Checks if the shader is guaranteed to produce only opaque colors.
61
61
pub fn is_opaque ( & self ) -> bool {
62
62
match self {
You can’t perform that action at this time.
0 commit comments