Initial work #7
Annotations
2 errors
cargo clippy:
src/lib.rs#L70
[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/lib.rs:70:1
|
70 | impl<T, BE> Into<Result<T, Error<BE>>> for PdError {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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<PdError>`
|
70 ~ impl<T, BE> From<PdError> for Result<T, Error<BE>> {
71 ~ fn from(val: PdError) -> Self {
72 ~ Err(Error::Pd(val))
|
Raw Output:
src/lib.rs:70:1:e:error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/lib.rs:70:1
|
70 | impl<T, BE> Into<Result<T, Error<BE>>> for PdError {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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<PdError>`
|
70 ~ impl<T, BE> From<PdError> for Result<T, Error<BE>> {
71 ~ fn from(val: PdError) -> Self {
72 ~ Err(Error::Pd(val))
|
__END__
|
cargo clippy:
src/lib.rs#L76
[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/lib.rs:76:1
|
76 | impl<BE> Into<Error<BE>> for PdError {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
help: replace the `Into` implementation with `From<PdError>`
|
76 ~ impl<BE> From<PdError> for Error<BE> {
77 ~ fn from(val: PdError) -> Self {
78 ~ Error::Pd(val)
|
Raw Output:
src/lib.rs:76:1:e:error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/lib.rs:76:1
|
76 | impl<BE> Into<Error<BE>> for PdError {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
help: replace the `Into` implementation with `From<PdError>`
|
76 ~ impl<BE> From<PdError> for Error<BE> {
77 ~ fn from(val: PdError) -> Self {
78 ~ Error::Pd(val)
|
__END__
|
Loading