@@ -329,7 +329,7 @@ impl<'a> TryFrom<&'a Multisig> for View<'a> {
329329 }
330330}
331331
332- impl < ' a > AttrView for View < ' a > {
332+ impl AttrView for View < ' _ > {
333333 /// for Bls Multisigs, the payload encoding is stored using the
334334 /// SchemeTypeId::PayloadEncoding attribute id.
335335 fn payload_encoding ( & self ) -> Result < Codec , Error > {
@@ -354,7 +354,7 @@ impl<'a> AttrView for View<'a> {
354354 }
355355}
356356
357- impl < ' a > DataView for View < ' a > {
357+ impl DataView for View < ' _ > {
358358 /// For Bls Multisig values, the sig data is stored using the
359359 /// SchemeTypeId::SigData attribute id.
360360 fn sig_bytes ( & self ) -> Result < Vec < u8 > , Error > {
@@ -367,7 +367,7 @@ impl<'a> DataView for View<'a> {
367367 }
368368}
369369
370- impl < ' a > ConvView for View < ' a > {
370+ impl ConvView for View < ' _ > {
371371 /// convert to SSH signature format
372372 fn to_ssh_signature ( & self ) -> Result < ssh_key:: Signature , Error > {
373373 // get the signature data
@@ -450,7 +450,7 @@ impl<'a> ConvView for View<'a> {
450450 }
451451}
452452
453- impl < ' a > ThresholdAttrView for View < ' a > {
453+ impl ThresholdAttrView for View < ' _ > {
454454 /// get the threshold value for this multisig
455455 fn threshold ( & self ) -> Result < usize , Error > {
456456 let threshold = self
@@ -495,7 +495,7 @@ impl<'a> ThresholdAttrView for View<'a> {
495495}
496496
497497/// trait for accumulating shares to rebuild a threshold signature
498- impl < ' a > ThresholdView for View < ' a > {
498+ impl ThresholdView for View < ' _ > {
499499 /// get the signature shares
500500 fn shares ( & self ) -> Result < Vec < Multisig > , Error > {
501501 // get the codec for the new share multisigs
@@ -606,9 +606,7 @@ impl<'a> ThresholdView for View<'a> {
606606 // the value from the first share added
607607 match av. payload_encoding ( ) {
608608 Ok ( encoding) => Some ( encoding) ,
609- Err ( _) => {
610- encoding
611- }
609+ Err ( _) => encoding,
612610 }
613611 } ;
614612
0 commit comments