@@ -222,7 +222,7 @@ pub struct ImageIter<'a, P> {
222222    data :  & ' a  [ P ] , 
223223} 
224224
225- impl < ' a ,   P >  ImageIter < ' a ,  P >  { 
225+ impl < P >  ImageIter < ' _ ,  P >  { 
226226    /// Get current (row, column) of the pixel 
227227pub  fn  position ( & self )  -> ( usize ,  usize )  { 
228228        self . shape . nth ( self . index ) . unwrap_or ( ( self . shape . height ,  0 ) ) 
@@ -308,7 +308,7 @@ pub struct ImageMutIter<'a, P> {
308308    data :  & ' a  mut  [ P ] , 
309309} 
310310
311- impl < ' a ,   P >  ImageMutIter < ' a ,  P >  { 
311+ impl < P >  ImageMutIter < ' _ ,  P >  { 
312312    /// Current (row, col) position of the iterator 
313313pub  fn  position ( & self )  -> ( usize ,  usize )  { 
314314        self . shape . nth ( self . index ) . unwrap_or ( ( self . shape . height ,  0 ) ) 
@@ -427,7 +427,7 @@ pub struct ImageRef<'a, P> {
427427    data :  & ' a  [ P ] , 
428428} 
429429
430- impl < ' a ,   P >  fmt:: Debug  for  ImageRef < ' a ,  P >  { 
430+ impl < P >  fmt:: Debug  for  ImageRef < ' _ ,  P >  { 
431431    fn  fmt ( & self ,  f :  & mut  fmt:: Formatter < ' _ > )  -> fmt:: Result  { 
432432        f. debug_struct ( "ImageRef" ) 
433433            . field ( "shape" ,  & self . shape ) 
@@ -442,7 +442,7 @@ impl<'a, P> ImageRef<'a, P> {
442442    } 
443443} 
444444
445- impl < ' a ,   P >  Image  for  ImageRef < ' a ,  P >  { 
445+ impl < P >  Image  for  ImageRef < ' _ ,  P >  { 
446446    type  Pixel  = P ; 
447447
448448    fn  shape ( & self )  -> Shape  { 
@@ -460,7 +460,7 @@ pub struct ImageMutRef<'a, C> {
460460    data :  & ' a  mut  [ C ] , 
461461} 
462462
463- impl < ' a ,   C >  fmt:: Debug  for  ImageMutRef < ' a ,  C >  { 
463+ impl < C >  fmt:: Debug  for  ImageMutRef < ' _ ,  C >  { 
464464    fn  fmt ( & self ,  f :  & mut  fmt:: Formatter < ' _ > )  -> fmt:: Result  { 
465465        f. debug_struct ( "ImageMutRef" ) 
466466            . field ( "shape" ,  & self . shape ) 
@@ -475,7 +475,7 @@ impl<'a, P> ImageMutRef<'a, P> {
475475    } 
476476} 
477477
478- impl < ' a ,   P >  Image  for  ImageMutRef < ' a ,  P >  { 
478+ impl < P >  Image  for  ImageMutRef < ' _ ,  P >  { 
479479    type  Pixel  = P ; 
480480
481481    fn  shape ( & self )  -> Shape  { 
@@ -487,13 +487,13 @@ impl<'a, P> Image for ImageMutRef<'a, P> {
487487    } 
488488} 
489489
490- impl < ' a ,   P >  ImageMut  for  ImageMutRef < ' a ,  P >  { 
490+ impl < P >  ImageMut  for  ImageMutRef < ' _ ,  P >  { 
491491    fn  data_mut ( & mut  self )  -> & mut  [ Self :: Pixel ]  { 
492492        self . data 
493493    } 
494494} 
495495
496- impl < ' a ,   I >  Image  for  & ' a   I 
496+ impl < I >  Image  for  & I 
497497where 
498498    I :  Image  + ?Sized , 
499499{ 
@@ -508,7 +508,7 @@ where
508508    } 
509509} 
510510
511- impl < ' a ,   I >  Image  for  & ' a   mut  I 
511+ impl < I >  Image  for  & mut  I 
512512where 
513513    I :  Image  + ?Sized , 
514514{ 
@@ -523,7 +523,7 @@ where
523523    } 
524524} 
525525
526- impl < ' a ,   I >  ImageMut  for  & ' a   mut  I 
526+ impl < I >  ImageMut  for  & mut  I 
527527where 
528528    I :  ImageMut  + ?Sized , 
529529{ 
0 commit comments