Skip to content

Commit fdce327

Browse files
committed
Fix explicit lifetime clippy lints
Fix the clippy lints for the use of an explicit lifetime.
1 parent f38221c commit fdce327

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

bitcoin/src/psbt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ impl<'de> serde::Deserialize<'de> for Psbt {
753753
{
754754
struct Visitor;
755755

756-
impl<'de> serde::de::Visitor<'de> for Visitor {
756+
impl serde::de::Visitor<'_> for Visitor {
757757
type Value = Psbt;
758758

759759
fn expecting(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {

consensus_encoding/src/encode/encoders.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ mod tests {
277277

278278
struct TestBytes<'a>(&'a [u8], bool);
279279

280-
impl<'a> Encodable for TestBytes<'a> {
280+
impl Encodable for TestBytes<'_> {
281281
type Encoder<'s>
282282
= BytesEncoder<'s>
283283
where

primitives/src/transaction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ impl<'e> WitnessesEncoder<'e> {
431431
}
432432

433433
#[cfg(feature = "alloc")]
434-
impl<'e> Encoder for WitnessesEncoder<'e> {
434+
impl Encoder for WitnessesEncoder<'_> {
435435
#[inline]
436436
fn current_chunk(&self) -> Option<&[u8]> {
437437
// `advance` sets `cur_enc` to `None` once the slice encoder is completely exhausted.
@@ -628,7 +628,7 @@ impl<'de> Deserialize<'de> for OutPoint {
628628
if deserializer.is_human_readable() {
629629
struct StringVisitor;
630630

631-
impl<'de> de::Visitor<'de> for StringVisitor {
631+
impl de::Visitor<'_> for StringVisitor {
632632
type Value = OutPoint;
633633

634634
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {

primitives/src/witness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ impl Encodable for Witness {
279279
}
280280
}
281281

282-
impl<'a> Encoder for WitnessEncoder<'a> {
282+
impl Encoder for WitnessEncoder<'_> {
283283
#[inline]
284284
fn current_chunk(&self) -> Option<&[u8]> { self.0.current_chunk() }
285285

0 commit comments

Comments
 (0)