Skip to content

Commit

Permalink
Ignore needless_lifetimes clippy lint
Browse files Browse the repository at this point in the history
    warning: the following explicit lifetimes could be elided: 'de
      --> src/deserialize.rs:16:14
       |
    16 |         impl<'de> Visitor<'de> for MustBeCharVisitor {
       |              ^^^          ^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
       = note: `-W clippy::needless-lifetimes` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::needless_lifetimes)]`
    help: elide the lifetimes
       |
    16 -         impl<'de> Visitor<'de> for MustBeCharVisitor {
    16 +         impl Visitor<'_> for MustBeCharVisitor {
       |

    warning: the following explicit lifetimes could be elided: 'de
      --> src/deserialize.rs:48:14
       |
    48 |         impl<'de> Visitor<'de> for MustBePosIntVisitor {
       |              ^^^          ^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
       |
    48 -         impl<'de> Visitor<'de> for MustBePosIntVisitor {
    48 +         impl Visitor<'_> for MustBePosIntVisitor {
       |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:125:14
        |
    125 |         impl<'de> Visitor<'de> for MustBeNegIntVisitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    125 -         impl<'de> Visitor<'de> for MustBeNegIntVisitor {
    125 +         impl Visitor<'_> for MustBeNegIntVisitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:202:14
        |
    202 |         impl<'de> Visitor<'de> for MustBeU8Visitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    202 -         impl<'de> Visitor<'de> for MustBeU8Visitor {
    202 +         impl Visitor<'_> for MustBeU8Visitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:234:14
        |
    234 |         impl<'de> Visitor<'de> for MustBeU16Visitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    234 -         impl<'de> Visitor<'de> for MustBeU16Visitor {
    234 +         impl Visitor<'_> for MustBeU16Visitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:266:14
        |
    266 |         impl<'de> Visitor<'de> for MustBeU32Visitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    266 -         impl<'de> Visitor<'de> for MustBeU32Visitor {
    266 +         impl Visitor<'_> for MustBeU32Visitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:298:14
        |
    298 |         impl<'de> Visitor<'de> for MustBeU64Visitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    298 -         impl<'de> Visitor<'de> for MustBeU64Visitor {
    298 +         impl Visitor<'_> for MustBeU64Visitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:351:14
        |
    351 |         impl<'de> Visitor<'de> for MustBeU128Visitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    351 -         impl<'de> Visitor<'de> for MustBeU128Visitor {
    351 +         impl Visitor<'_> for MustBeU128Visitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:389:14
        |
    389 |         impl<'de> Visitor<'de> for MustBeI8Visitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    389 -         impl<'de> Visitor<'de> for MustBeI8Visitor {
    389 +         impl Visitor<'_> for MustBeI8Visitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:421:14
        |
    421 |         impl<'de> Visitor<'de> for MustBeI16Visitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    421 -         impl<'de> Visitor<'de> for MustBeI16Visitor {
    421 +         impl Visitor<'_> for MustBeI16Visitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:453:14
        |
    453 |         impl<'de> Visitor<'de> for MustBeI32Visitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    453 -         impl<'de> Visitor<'de> for MustBeI32Visitor {
    453 +         impl Visitor<'_> for MustBeI32Visitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:485:14
        |
    485 |         impl<'de> Visitor<'de> for MustBeI64Visitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    485 -         impl<'de> Visitor<'de> for MustBeI64Visitor {
    485 +         impl Visitor<'_> for MustBeI64Visitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:538:14
        |
    538 |         impl<'de> Visitor<'de> for MustBeI128Visitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    538 -         impl<'de> Visitor<'de> for MustBeI128Visitor {
    538 +         impl Visitor<'_> for MustBeI128Visitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:576:14
        |
    576 |         impl<'de> Visitor<'de> for MustBeBoolVisitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    576 -         impl<'de> Visitor<'de> for MustBeBoolVisitor {
    576 +         impl Visitor<'_> for MustBeBoolVisitor {
        |

    warning: the following explicit lifetimes could be elided: 'de
       --> src/deserialize.rs:608:14
        |
    608 |         impl<'de> Visitor<'de> for MustBeStrVisitor {
        |              ^^^          ^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    608 -         impl<'de> Visitor<'de> for MustBeStrVisitor {
    608 +         impl Visitor<'_> for MustBeStrVisitor {
        |

    warning: the following explicit lifetimes could be elided: 'a
      --> src/format.rs:20:6
       |
    20 | impl<'a> Write for Buf<'a> {
       |      ^^                ^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
       |
    20 - impl<'a> Write for Buf<'a> {
    20 + impl Write for Buf<'_> {
       |
  • Loading branch information
dtolnay committed Oct 6, 2024
1 parent 557dc28 commit 1de0f70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
clippy::expl_impl_clone_on_copy,
clippy::missing_safety_doc,
clippy::module_name_repetitions,
clippy::needless_lifetimes,
clippy::ptr_as_ptr,
clippy::uninhabited_references,
clippy::uninlined_format_args
Expand Down

0 comments on commit 1de0f70

Please sign in to comment.