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: 'a
       --> src/lib.rs:118:6
        |
    118 | impl<'a, 'b, D, F> Deserializer<'a, 'b, D, F>
        |      ^^                         ^^
        |
        = 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
        |
    118 - impl<'a, 'b, D, F> Deserializer<'a, 'b, D, F>
    118 + impl<'b, D, F> Deserializer<'_, 'b, D, F>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/lib.rs:150:6
        |
    150 | impl<'a> Display for Path<'a> {
        |      ^^                   ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    150 - impl<'a> Display for Path<'a> {
    150 + impl Display for Path<'_> {
        |

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

    warning: the following explicit lifetimes could be elided: 'a, 'b
       --> src/lib.rs:176:6
        |
    176 | impl<'a, 'b, 'de, D, F> de::Deserializer<'de> for Deserializer<'a, 'b, D, F>
        |      ^^  ^^                                                    ^^  ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    176 - impl<'a, 'b, 'de, D, F> de::Deserializer<'de> for Deserializer<'a, 'b, D, F>
    176 + impl<'de, D, F> de::Deserializer<'de> for Deserializer<'_, '_, D, F>
        |

    warning: the following explicit lifetimes could be elided: 'a, 'b
       --> src/lib.rs:465:6
        |
    465 | impl<'a, 'b, 'de, X, F> Visitor<'de> for Wrap<'a, 'b, X, F>
        |      ^^  ^^                                   ^^  ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    465 - impl<'a, 'b, 'de, X, F> Visitor<'de> for Wrap<'a, 'b, X, F>
    465 + impl<'de, X, F> Visitor<'de> for Wrap<'_, '_, X, F>
        |

    warning: the following explicit lifetimes could be elided: 'a, 'b
       --> src/lib.rs:685:6
        |
    685 | impl<'a, 'b, 'de, X, F> de::VariantAccess<'de> for Wrap<'a, 'b, X, F>
        |      ^^  ^^                                             ^^  ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    685 - impl<'a, 'b, 'de, X, F> de::VariantAccess<'de> for Wrap<'a, 'b, X, F>
    685 + impl<'de, X, F> de::VariantAccess<'de> for Wrap<'_, '_, X, F>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/lib.rs:740:6
        |
    740 | impl<'a, 'de, X> DeserializeSeed<'de> for CaptureKey<'a, X>
        |      ^^                                              ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    740 - impl<'a, 'de, X> DeserializeSeed<'de> for CaptureKey<'a, X>
    740 + impl<'de, X> DeserializeSeed<'de> for CaptureKey<'_, X>
        |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/lib.rs:756:6
        |
    756 | impl<'a, 'de, X> de::Deserializer<'de> for CaptureKey<'a, X>
        |      ^^                                               ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    756 - impl<'a, 'de, X> de::Deserializer<'de> for CaptureKey<'a, X>
    756 + impl<'de, X> de::Deserializer<'de> for CaptureKey<'_, X>
        |

    warning: the following explicit lifetimes could be elided: 'a
        --> src/lib.rs:1023:6
         |
    1023 | impl<'a, 'de, X> Visitor<'de> for CaptureKey<'a, X>
         |      ^^                                      ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
         |
    1023 - impl<'a, 'de, X> Visitor<'de> for CaptureKey<'a, X>
    1023 + impl<'de, X> Visitor<'de> for CaptureKey<'_, X>
         |

    warning: the following explicit lifetimes could be elided: 'a
        --> src/lib.rs:1222:6
         |
    1222 | impl<'a, 'de, X> de::EnumAccess<'de> for CaptureKey<'a, X>
         |      ^^                                             ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
         |
    1222 - impl<'a, 'de, X> de::EnumAccess<'de> for CaptureKey<'a, X>
    1222 + impl<'de, X> de::EnumAccess<'de> for CaptureKey<'_, X>
         |

    warning: the following explicit lifetimes could be elided: 'a
        --> src/lib.rs:1255:6
         |
    1255 | impl<'a, 'de, X, F> DeserializeSeed<'de> for TrackedSeed<'a, X, F>
         |      ^^                                                  ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
         |
    1255 - impl<'a, 'de, X, F> DeserializeSeed<'de> for TrackedSeed<'a, X, F>
    1255 + impl<'de, X, F> DeserializeSeed<'de> for TrackedSeed<'_, X, F>
         |

    warning: the following explicit lifetimes could be elided: 'a, 'b
        --> src/lib.rs:1294:6
         |
    1294 | impl<'a, 'b, 'de, X, F> de::SeqAccess<'de> for SeqAccess<'a, 'b, X, F>
         |      ^^  ^^                                              ^^  ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
         |
    1294 - impl<'a, 'b, 'de, X, F> de::SeqAccess<'de> for SeqAccess<'a, 'b, X, F>
    1294 + impl<'de, X, F> de::SeqAccess<'de> for SeqAccess<'_, '_, X, F>
         |

    warning: the following explicit lifetimes could be elided: 'a, 'b
        --> src/lib.rs:1346:6
         |
    1346 | impl<'a, 'b, 'de, X, F> de::MapAccess<'de> for MapAccess<'a, 'b, X, F>
         |      ^^  ^^                                              ^^  ^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
         |
    1346 - impl<'a, 'b, 'de, X, F> de::MapAccess<'de> for MapAccess<'a, 'b, X, F>
    1346 + impl<'de, X, F> de::MapAccess<'de> for MapAccess<'_, '_, X, F>
         |
  • Loading branch information
dtolnay committed Oct 6, 2024
1 parent a5aafea commit 5727122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

#![no_std]
#![doc(html_root_url = "https://docs.rs/serde_ignored/0.1.10")]
#![allow(clippy::missing_errors_doc)]
#![allow(clippy::missing_errors_doc, clippy::needless_lifetimes)]

extern crate alloc;

Expand Down

0 comments on commit 5727122

Please sign in to comment.