Skip to content

Merge pull request #106 from flokli/bump-nix-crate #531

Merge pull request #106 from flokli/bump-nix-crate

Merge pull request #106 from flokli/bump-nix-crate #531

GitHub Actions / clippy failed Mar 6, 2024 in 0s

clippy

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.78.0-nightly (b6d2d841b 2024-03-05)
  • cargo 1.78.0-nightly (f772ec022 2024-03-01)
  • clippy 0.1.78 (b6d2d84 2024-03-05)

Annotations

Check failure on line 46 in src/protocol.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

non-local `impl` definition, they should be avoided as they go against expectation

error: non-local `impl` definition, they should be avoided as they go against expectation
  --> src/protocol.rs:46:45
   |
46 | #[derive(Clone, Copy, Debug, FromPrimitive, ToPrimitive)]
   |                                             ^^^^^^^^^^^
   |
   = help: move this `impl` block outside the of the current constant `_IMPL_NUM_ToPrimitive_FOR_RequestType`
   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
   = note: one exception to the rule are anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type
   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
   = note: this error originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 46 in src/protocol.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

non-local `impl` definition, they should be avoided as they go against expectation

error: non-local `impl` definition, they should be avoided as they go against expectation
  --> src/protocol.rs:46:30
   |
46 | #[derive(Clone, Copy, Debug, FromPrimitive, ToPrimitive)]
   |                              ^^^^^^^^^^^^^
   |
   = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_RequestType`
   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
   = note: one exception to the rule are anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type
   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
   = note: `-D non-local-definitions` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(non_local_definitions)]`
   = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)