tokio-rs / prost

PROST! a Protocol Buffers implementation for the Rust Language
Apache License 2.0
3.95k stars 508 forks source link

style: Remove explicit lifetimes #1180

Closed caspermeijn closed 3 weeks ago

caspermeijn commented 1 month ago

cargo clippy reports:

error: the following explicit lifetimes could be elided: 'a
  --> prost-types/src/conversions.rs:46:6
   |
46 | impl<'a> From<&'a str> for Value {
   |      ^^        ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
   = note: `-D clippy::needless-lifetimes` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
help: elide the lifetimes
   |
46 - impl<'a> From<&'a str> for Value {
46 + impl From<&str> for Value {