Initial work #3
Annotations
2 errors and 1 warning
cargo clippy:
src/lib.rs#L66
[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:66:1
|
66 | 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>`
|
66 ~ impl<T, BE> From<PdError> for Result<T, Error<BE>> {
67 ~ fn from(val: PdError) -> Self {
68 ~ Err(Error::Pd(val))
|
Raw Output:
src/lib.rs:66: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:66:1
|
66 | 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>`
|
66 ~ impl<T, BE> From<PdError> for Result<T, Error<BE>> {
67 ~ fn from(val: PdError) -> Self {
68 ~ Err(Error::Pd(val))
|
__END__
|
cargo clippy:
src/lib.rs#L72
[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:72:1
|
72 | 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>`
|
72 ~ impl<BE> From<PdError> for Error<BE> {
73 ~ fn from(val: PdError) -> Self {
74 ~ Error::Pd(val)
|
Raw Output:
src/lib.rs:72: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:72:1
|
72 | 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>`
|
72 ~ impl<BE> From<PdError> for Error<BE> {
73 ~ fn from(val: PdError) -> Self {
74 ~ Error::Pd(val)
|
__END__
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading