@@ -30,7 +30,7 @@ pub struct Output<'a, 'b> {
3030 instance : & ' b serde_json:: Value ,
3131}
3232
33- impl < ' a , ' b > Output < ' a , ' b > {
33+ impl < ' a > Output < ' a , ' _ > {
3434 pub ( crate ) const fn new < ' c , ' d > (
3535 schema : & ' c Validator ,
3636 root_node : & ' c SchemaNode ,
@@ -117,7 +117,7 @@ pub enum BasicOutput<'a> {
117117 Invalid ( VecDeque < OutputUnit < ErrorDescription > > ) ,
118118}
119119
120- impl < ' a > BasicOutput < ' a > {
120+ impl BasicOutput < ' _ > {
121121 /// A shortcut to check whether the output represents passed validation.
122122 #[ must_use]
123123 pub const fn is_valid ( & self ) -> bool {
@@ -136,7 +136,7 @@ impl<'a> From<OutputUnit<Annotations<'a>>> for BasicOutput<'a> {
136136 }
137137}
138138
139- impl < ' a > AddAssign for BasicOutput < ' a > {
139+ impl AddAssign for BasicOutput < ' _ > {
140140 fn add_assign ( & mut self , rhs : Self ) {
141141 match ( & mut * self , rhs) {
142142 ( BasicOutput :: Valid ( ref mut anns) , BasicOutput :: Valid ( anns_rhs) ) => {
@@ -153,7 +153,7 @@ impl<'a> AddAssign for BasicOutput<'a> {
153153 }
154154}
155155
156- impl < ' a > Sum for BasicOutput < ' a > {
156+ impl Sum for BasicOutput < ' _ > {
157157 fn sum < I : Iterator < Item = Self > > ( iter : I ) -> Self {
158158 let result = BasicOutput :: Valid ( VecDeque :: new ( ) ) ;
159159 iter. fold ( result, |mut acc, elem| {
@@ -163,7 +163,7 @@ impl<'a> Sum for BasicOutput<'a> {
163163 }
164164}
165165
166- impl < ' a > Default for BasicOutput < ' a > {
166+ impl Default for BasicOutput < ' _ > {
167167 fn default ( ) -> Self {
168168 BasicOutput :: Valid ( VecDeque :: new ( ) )
169169 }
@@ -306,7 +306,7 @@ impl<'a> From<&'a serde_json::Value> for Annotations<'a> {
306306 }
307307}
308308
309- impl < ' a > From < serde_json:: Value > for Annotations < ' a > {
309+ impl From < serde_json:: Value > for Annotations < ' _ > {
310310 fn from ( v : serde_json:: Value ) -> Self {
311311 Annotations ( AnnotationsInner :: Value ( Box :: new ( v) ) )
312312 }
@@ -342,7 +342,7 @@ impl<'a> From<&'a str> for ErrorDescription {
342342 }
343343}
344344
345- impl < ' a > serde:: Serialize for BasicOutput < ' a > {
345+ impl serde:: Serialize for BasicOutput < ' _ > {
346346 fn serialize < S > ( & self , serializer : S ) -> Result < S :: Ok , S :: Error >
347347 where
348348 S : serde:: Serializer ,
@@ -362,7 +362,7 @@ impl<'a> serde::Serialize for BasicOutput<'a> {
362362 }
363363}
364364
365- impl < ' a > serde:: Serialize for AnnotationsInner < ' a > {
365+ impl serde:: Serialize for AnnotationsInner < ' _ > {
366366 fn serialize < S > ( & self , serializer : S ) -> Result < S :: Ok , S :: Error >
367367 where
368368 S : serde:: Serializer ,
@@ -375,7 +375,7 @@ impl<'a> serde::Serialize for AnnotationsInner<'a> {
375375 }
376376}
377377
378- impl < ' a > serde:: Serialize for OutputUnit < Annotations < ' a > > {
378+ impl serde:: Serialize for OutputUnit < Annotations < ' _ > > {
379379 fn serialize < S > ( & self , serializer : S ) -> Result < S :: Ok , S :: Error >
380380 where
381381 S : serde:: Serializer ,
0 commit comments