Initial work #4
Annotations
2 errors and 1 warning
cargo clippy:
src/lib.rs#L55
[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:55:1
|
55 | 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>`
|
55 ~ impl<T, BE> From<PdError> for Result<T, Error<BE>> {
56 ~ fn from(val: PdError) -> Self {
57 ~ Err(Error::Pd(val))
|
Raw Output:
src/lib.rs:55: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:55:1
|
55 | 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>`
|
55 ~ impl<T, BE> From<PdError> for Result<T, Error<BE>> {
56 ~ fn from(val: PdError) -> Self {
57 ~ Err(Error::Pd(val))
|
__END__
|
cargo clippy:
src/lib.rs#L61
[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:61:1
|
61 | 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>`
|
61 ~ impl<BE> From<PdError> for Error<BE> {
62 ~ fn from(val: PdError) -> Self {
63 ~ Error::Pd(val)
|
Raw Output:
src/lib.rs:61: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:61:1
|
61 | 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>`
|
61 ~ impl<BE> From<PdError> for Error<BE> {
62 ~ fn from(val: PdError) -> Self {
63 ~ 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