Create PDO/RDO definitions #11
Annotations
1 error
cargo clippy:
src/pdo/mod.rs#L74
[clippy] reported by reviewdog 🐶
error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/pdo/mod.rs:74:1
|
74 | impl Into<u8> for ApdoKind {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
= note: `-F clippy::from-over-into` implied by `-F clippy::style`
help: replace the `Into` implementation with `From<pdo::ApdoKind>`
|
74 ~ impl From<ApdoKind> for u8 {
75 ~ fn from(val: ApdoKind) -> Self {
76 ~ match val {
|
Raw Output:
src/pdo/mod.rs:74:1:e:error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/pdo/mod.rs:74:1
|
74 | impl Into<u8> for ApdoKind {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
= note: `-F clippy::from-over-into` implied by `-F clippy::style`
help: replace the `Into` implementation with `From<pdo::ApdoKind>`
|
74 ~ impl From<ApdoKind> for u8 {
75 ~ fn from(val: ApdoKind) -> Self {
76 ~ match val {
|
__END__
|
Loading