[INFO] fetching crate ltr303 0.1.4...
[INFO] checking ltr303-0.1.4 against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478
[INFO] extracting crate ltr303 0.1.4 into /workspace/builds/worker-1-tc1/source
[INFO] started tweaking crates.io crate ltr303 0.1.4
[INFO] finished tweaking crates.io crate ltr303 0.1.4
[INFO] tweaked toml for crates.io crate ltr303 0.1.4 written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate ltr303 0.1.4 on toolchain eca445e5ae4a6679cc27d3a09106ce245e13a5a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 64 packages to highest compatible versions
[INFO] [stderr]       Adding embedded-hal-mock v0.10.0 (available: v0.11.1)
[INFO] [stderr]       Adding linux-embedded-hal v0.4.1 (available: v0.5.0)
[INFO] [stderr]       Adding num-derive v0.3.3 (available: v0.5.1)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: explicit `package.readme` can be inferred
[INFO] [stderr]   --> Cargo.toml:36:1
[INFO] [stderr]    |
[INFO] [stderr] 36 | readme = "README.md"
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::manual_readme` is set to `warn` by default
[INFO] [stderr] help: consider removing `package.readme`
[INFO] [stderr] warning: `package.homepage` is redundant with `package.repository`
[INFO] [stderr]   --> Cargo.toml:31:12
[INFO] [stderr]    |
[INFO] [stderr] 31 | homepage = "https://github.com/Ardelean-Calin/ltr303-rs"
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 37 | repository = "https://github.com/Ardelean-Calin/ltr303-rs"
[INFO] [stderr]    |              ---------------------------------------------
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::redundant_homepage` is set to `warn` by default
[INFO] [stderr] help: consider removing `package.homepage`
[INFO] [stderr] warning: `ltr303` (manifest) generated 2 warnings
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded linux-embedded-hal v0.4.1
[INFO] [stderr]   Downloaded spidev v0.6.1
[INFO] [stderr]   Downloaded i2cdev v0.6.2
[INFO] [stderr]   Downloaded embedded-hal-mock v0.10.0
[INFO] [stderr]   Downloaded sysfs_gpio v0.6.2
[INFO] [stderr]   Downloaded gpio-cdev v0.6.0
[INFO] [stderr]   Downloaded nix v0.27.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 137ba9aeb7ed4c4c260b4ad69bb85421fa0e25eb45ed54f30735e880ba8672c2
[INFO] running `Command { std: "docker" "start" "137ba9aeb7ed4c4c260b4ad69bb85421fa0e25eb45ed54f30735e880ba8672c2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "137ba9aeb7ed4c4c260b4ad69bb85421fa0e25eb45ed54f30735e880ba8672c2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "137ba9aeb7ed4c4c260b4ad69bb85421fa0e25eb45ed54f30735e880ba8672c2" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "137ba9aeb7ed4c4c260b4ad69bb85421fa0e25eb45ed54f30735e880ba8672c2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "137ba9aeb7ed4c4c260b4ad69bb85421fa0e25eb45ed54f30735e880ba8672c2" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: explicit `package.readme` can be inferred
[INFO] [stderr]   --> Cargo.toml:36:1
[INFO] [stderr]    |
[INFO] [stderr] 36 | readme = "README.md"
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::manual_readme` is set to `warn` by default
[INFO] [stderr] help: consider removing `package.readme`
[INFO] [stderr] warning: `package.homepage` is redundant with `package.repository`
[INFO] [stderr]   --> Cargo.toml:31:12
[INFO] [stderr]    |
[INFO] [stderr] 31 | homepage = "https://github.com/Ardelean-Calin/ltr303-rs"
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 37 | repository = "https://github.com/Ardelean-Calin/ltr303-rs"
[INFO] [stderr]    |              ---------------------------------------------
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::redundant_homepage` is set to `warn` by default
[INFO] [stderr] help: consider removing `package.homepage`
[INFO] [stderr] warning: `ltr303` (manifest) generated 2 warnings
[INFO] [stderr]    Compiling memoffset v0.7.1
[INFO] [stderr]     Checking bitflags v2.13.2
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking embedded-hal-nb v1.0.0
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]     Checking void v1.0.2
[INFO] [stderr]     Checking num-complex v0.4.6
[INFO] [stderr]    Compiling syn v3.0.5
[INFO] [stderr]     Checking num-rational v0.4.2
[INFO] [stderr]     Checking embedded-hal v0.2.7
[INFO] [stderr]     Checking nix v0.23.2
[INFO] [stderr]     Checking nix v0.27.1
[INFO] [stderr]     Checking nix v0.26.4
[INFO] [stderr]     Checking embedded-hal-mock v0.10.0
[INFO] [stderr]     Checking gpio-cdev v0.6.0
[INFO] [stderr]     Checking num v0.4.3
[INFO] [stderr]    Compiling thiserror-impl v2.0.20
[INFO] [stderr]    Compiling num-derive v0.3.3
[INFO] [stderr]     Checking thiserror v2.0.20
[INFO] [stderr]     Checking unescaper v0.1.10
[INFO] [stderr]     Checking ltr303 v0.1.4 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::create_register`
[INFO] [stdout]  --> src/registers.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::create_register;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:1:41
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                         ^------------
[INFO] [stdout]   |                                         |
[INFO] [stdout]   |                                         `FromPrimitive` is not local
[INFO] [stdout]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Mode`
[INFO] [stdout] 2 | pub enum Mode {
[INFO] [stdout]   |          ---- `Mode` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = 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`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:1:56
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                                        ^----------
[INFO] [stdout]   |                                                        |
[INFO] [stdout]   |                                                        `ToPrimitive` is not local
[INFO] [stdout]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Mode`
[INFO] [stdout] 2 | pub enum Mode {
[INFO] [stdout]   |          ---- `Mode` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = 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`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:7:41
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                         ^------------
[INFO] [stdout]   |                                         |
[INFO] [stdout]   |                                         `FromPrimitive` is not local
[INFO] [stdout]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Gain`
[INFO] [stdout] 8 | pub enum Gain {
[INFO] [stdout]   |          ---- `Gain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = 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`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:7:56
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                                        ^----------
[INFO] [stdout]   |                                                        |
[INFO] [stdout]   |                                                        `ToPrimitive` is not local
[INFO] [stdout]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Gain`
[INFO] [stdout] 8 | pub enum Gain {
[INFO] [stdout]   |          ---- `Gain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = 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`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:30:41
[INFO] [stdout]    |
[INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MeasurementRate`
[INFO] [stdout] 31 | pub enum MeasurementRate {
[INFO] [stdout]    |          --------------- `MeasurementRate` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:30:56
[INFO] [stdout]    |
[INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_MeasurementRate`
[INFO] [stdout] 31 | pub enum MeasurementRate {
[INFO] [stdout]    |          --------------- `MeasurementRate` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:40:41
[INFO] [stdout]    |
[INFO] [stdout] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntegrationTime`
[INFO] [stdout] 41 | pub enum IntegrationTime {
[INFO] [stdout]    |          --------------- `IntegrationTime` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:40:56
[INFO] [stdout]    |
[INFO] [stdout] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntegrationTime`
[INFO] [stdout] 41 | pub enum IntegrationTime {
[INFO] [stdout]    |          --------------- `IntegrationTime` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:68:41
[INFO] [stdout]    |
[INFO] [stdout] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRMode`
[INFO] [stdout] 69 | pub enum ISRMode {
[INFO] [stdout]    |          ------- `ISRMode` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:68:56
[INFO] [stdout]    |
[INFO] [stdout] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRMode`
[INFO] [stdout] 69 | pub enum ISRMode {
[INFO] [stdout]    |          ------- `ISRMode` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:74:41
[INFO] [stdout]    |
[INFO] [stdout] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRPol`
[INFO] [stdout] 75 | pub enum ISRPol {
[INFO] [stdout]    |          ------ `ISRPol` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:74:56
[INFO] [stdout]    |
[INFO] [stdout] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRPol`
[INFO] [stdout] 75 | pub enum ISRPol {
[INFO] [stdout]    |          ------ `ISRPol` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:80:41
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataValidity`
[INFO] [stdout] 81 | pub enum DataValidity {
[INFO] [stdout]    |          ------------ `DataValidity` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:80:56
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataValidity`
[INFO] [stdout] 81 | pub enum DataValidity {
[INFO] [stdout]    |          ------------ `DataValidity` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:86:41
[INFO] [stdout]    |
[INFO] [stdout] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataStatus`
[INFO] [stdout] 87 | pub enum DataStatus {
[INFO] [stdout]    |          ---------- `DataStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:86:56
[INFO] [stdout]    |
[INFO] [stdout] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataStatus`
[INFO] [stdout] 87 | pub enum DataStatus {
[INFO] [stdout]    |          ---------- `DataStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:92:28
[INFO] [stdout]    |
[INFO] [stdout] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                            ^------------
[INFO] [stdout]    |                            |
[INFO] [stdout]    |                            `FromPrimitive` is not local
[INFO] [stdout]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntStatus`
[INFO] [stdout] 93 | pub enum IntStatus {
[INFO] [stdout]    |          --------- `IntStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:92:43
[INFO] [stdout]    |
[INFO] [stdout] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                           ^----------
[INFO] [stdout]    |                                           |
[INFO] [stdout]    |                                           `ToPrimitive` is not local
[INFO] [stdout]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntStatus`
[INFO] [stdout] 93 | pub enum IntStatus {
[INFO] [stdout]    |          --------- `IntStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:98:28
[INFO] [stdout]    |
[INFO] [stdout] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                            ^------------
[INFO] [stdout]    |                            |
[INFO] [stdout]    |                            `FromPrimitive` is not local
[INFO] [stdout]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ResetStatus`
[INFO] [stdout] 99 | pub enum ResetStatus {
[INFO] [stdout]    |          ----------- `ResetStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:98:43
[INFO] [stdout]    |
[INFO] [stdout] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                           ^----------
[INFO] [stdout]    |                                           |
[INFO] [stdout]    |                                           `ToPrimitive` is not local
[INFO] [stdout]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ResetStatus`
[INFO] [stdout] 99 | pub enum ResetStatus {
[INFO] [stdout]    |          ----------- `ResetStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking sysfs_gpio v0.6.2
[INFO] [stderr]     Checking spidev v0.6.1
[INFO] [stderr]     Checking i2cdev v0.6.2
[INFO] [stderr]     Checking serialport v4.10.1
[INFO] [stderr]     Checking linux-embedded-hal v0.4.1
[INFO] [stdout] warning: unused import: `crate::create_register`
[INFO] [stdout]  --> src/registers.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::create_register;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:1:41
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                         ^------------
[INFO] [stdout]   |                                         |
[INFO] [stdout]   |                                         `FromPrimitive` is not local
[INFO] [stdout]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Mode`
[INFO] [stdout] 2 | pub enum Mode {
[INFO] [stdout]   |          ---- `Mode` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = 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`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:1:56
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                                        ^----------
[INFO] [stdout]   |                                                        |
[INFO] [stdout]   |                                                        `ToPrimitive` is not local
[INFO] [stdout]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Mode`
[INFO] [stdout] 2 | pub enum Mode {
[INFO] [stdout]   |          ---- `Mode` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = 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`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:7:41
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                         ^------------
[INFO] [stdout]   |                                         |
[INFO] [stdout]   |                                         `FromPrimitive` is not local
[INFO] [stdout]   |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Gain`
[INFO] [stdout] 8 | pub enum Gain {
[INFO] [stdout]   |          ---- `Gain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = 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`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/fields.rs:7:56
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                                        ^----------
[INFO] [stdout]   |                                                        |
[INFO] [stdout]   |                                                        `ToPrimitive` is not local
[INFO] [stdout]   |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Gain`
[INFO] [stdout] 8 | pub enum Gain {
[INFO] [stdout]   |          ---- `Gain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = 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`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:30:41
[INFO] [stdout]    |
[INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MeasurementRate`
[INFO] [stdout] 31 | pub enum MeasurementRate {
[INFO] [stdout]    |          --------------- `MeasurementRate` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:30:56
[INFO] [stdout]    |
[INFO] [stdout] 30 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_MeasurementRate`
[INFO] [stdout] 31 | pub enum MeasurementRate {
[INFO] [stdout]    |          --------------- `MeasurementRate` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:40:41
[INFO] [stdout]    |
[INFO] [stdout] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntegrationTime`
[INFO] [stdout] 41 | pub enum IntegrationTime {
[INFO] [stdout]    |          --------------- `IntegrationTime` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:40:56
[INFO] [stdout]    |
[INFO] [stdout] 40 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntegrationTime`
[INFO] [stdout] 41 | pub enum IntegrationTime {
[INFO] [stdout]    |          --------------- `IntegrationTime` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:68:41
[INFO] [stdout]    |
[INFO] [stdout] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRMode`
[INFO] [stdout] 69 | pub enum ISRMode {
[INFO] [stdout]    |          ------- `ISRMode` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:68:56
[INFO] [stdout]    |
[INFO] [stdout] 68 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRMode`
[INFO] [stdout] 69 | pub enum ISRMode {
[INFO] [stdout]    |          ------- `ISRMode` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:74:41
[INFO] [stdout]    |
[INFO] [stdout] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ISRPol`
[INFO] [stdout] 75 | pub enum ISRPol {
[INFO] [stdout]    |          ------ `ISRPol` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:74:56
[INFO] [stdout]    |
[INFO] [stdout] 74 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ISRPol`
[INFO] [stdout] 75 | pub enum ISRPol {
[INFO] [stdout]    |          ------ `ISRPol` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:80:41
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataValidity`
[INFO] [stdout] 81 | pub enum DataValidity {
[INFO] [stdout]    |          ------------ `DataValidity` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:80:56
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataValidity`
[INFO] [stdout] 81 | pub enum DataValidity {
[INFO] [stdout]    |          ------------ `DataValidity` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:86:41
[INFO] [stdout]    |
[INFO] [stdout] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                         ^------------
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         `FromPrimitive` is not local
[INFO] [stdout]    |                                         move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_DataStatus`
[INFO] [stdout] 87 | pub enum DataStatus {
[INFO] [stdout]    |          ---------- `DataStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:86:56
[INFO] [stdout]    |
[INFO] [stdout] 86 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                                        ^----------
[INFO] [stdout]    |                                                        |
[INFO] [stdout]    |                                                        `ToPrimitive` is not local
[INFO] [stdout]    |                                                        move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_DataStatus`
[INFO] [stdout] 87 | pub enum DataStatus {
[INFO] [stdout]    |          ---------- `DataStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:92:28
[INFO] [stdout]    |
[INFO] [stdout] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                            ^------------
[INFO] [stdout]    |                            |
[INFO] [stdout]    |                            `FromPrimitive` is not local
[INFO] [stdout]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_IntStatus`
[INFO] [stdout] 93 | pub enum IntStatus {
[INFO] [stdout]    |          --------- `IntStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:92:43
[INFO] [stdout]    |
[INFO] [stdout] 92 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                           ^----------
[INFO] [stdout]    |                                           |
[INFO] [stdout]    |                                           `ToPrimitive` is not local
[INFO] [stdout]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_IntStatus`
[INFO] [stdout] 93 | pub enum IntStatus {
[INFO] [stdout]    |          --------- `IntStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:98:28
[INFO] [stdout]    |
[INFO] [stdout] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                            ^------------
[INFO] [stdout]    |                            |
[INFO] [stdout]    |                            `FromPrimitive` is not local
[INFO] [stdout]    |                            move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ResetStatus`
[INFO] [stdout] 99 | pub enum ResetStatus {
[INFO] [stdout]    |          ----------- `ResetStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/fields.rs:98:43
[INFO] [stdout]    |
[INFO] [stdout] 98 | #[derive(Debug, PartialEq, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                           ^----------
[INFO] [stdout]    |                                           |
[INFO] [stdout]    |                                           `ToPrimitive` is not local
[INFO] [stdout]    |                                           move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ResetStatus`
[INFO] [stdout] 99 | pub enum ResetStatus {
[INFO] [stdout]    |          ----------- `ResetStatus` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = 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`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.85s
[INFO] running `Command { std: "docker" "inspect" "137ba9aeb7ed4c4c260b4ad69bb85421fa0e25eb45ed54f30735e880ba8672c2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "137ba9aeb7ed4c4c260b4ad69bb85421fa0e25eb45ed54f30735e880ba8672c2", kill_on_drop: false }`
[INFO] [stdout] 137ba9aeb7ed4c4c260b4ad69bb85421fa0e25eb45ed54f30735e880ba8672c2
