rust-pcap / pcap

Rust language pcap library
Apache License 2.0
610 stars 138 forks source link

Clippy `from_over_into` since rust 1.51 #166

Closed Wojtek242 closed 3 years ago

Wojtek242 commented 3 years ago

As of rust 1.51 clippy fails on

error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
   --> src/lib.rs:245:1
    |
245 | impl<'a> Into<Device> for &'a str {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `-D clippy::from-over-into` implied by `-D warnings`
    = help: consider to implement `From` instead
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into