fix: update embedded-hal-fuzz and fix tests (#32) #23
clippy
25 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 25 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.77.0-nightly (5d3d3479d 2024-01-23)
- cargo 1.77.0-nightly (1ae631085 2024-01-17)
- clippy 0.1.77 (5d3d347 2024-01-23)
Annotations
Check warning on line 758 in src/lib.rs
github-actions / clippy
this returns a `Result<_, ()>`
warning: this returns a `Result<_, ()>`
--> src/lib.rs:758:5
|
758 | pub fn build(self) -> Result<AxisRemap, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
= note: `#[warn(clippy::result_unit_err)]` on by default
Check warning on line 672 in src/lib.rs
github-actions / clippy
getter function appears to return the wrong field
warning: getter function appears to return the wrong field
--> src/lib.rs:670:5
|
670 | / pub fn y(&self) -> BNO055AxisConfig {
671 | | self.x
| | ------ help: consider using: `self.y`
672 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#misnamed_getters
= note: `#[warn(clippy::misnamed_getters)]` on by default
Check warning on line 13 in src/acc_config.rs
github-actions / clippy
all variants have the same prefix: `BadAcc`
warning: all variants have the same prefix: `BadAcc`
--> src/acc_config.rs:9:1
|
9 | / pub enum Error {
10 | | BadAccGRange,
11 | | BadAccBandwidth,
12 | | BadAccOperationMode,
13 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
= note: `#[warn(clippy::enum_variant_names)]` on by default
Check warning on line 5 in src/lib.rs
github-actions / clippy
this is an outer doc comment and does not apply to the parent module or crate
warning: this is an outer doc comment and does not apply to the parent module or crate
--> src/lib.rs:4:1
|
4 | / ///! Bosch Sensortec BNO055 9-axis IMU sensor driver.
5 | | ///! Datasheet: https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BNO055-DS000.pdf
| |___________________________________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_doc_comments
= note: `#[warn(clippy::suspicious_doc_comments)]` on by default
help: use an inner doc comment to document the parent module or crate
|
4 + //! Bosch Sensortec BNO055 9-axis IMU sensor driver.
5 + //! Datasheet: https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BNO055-DS000.pdf
|
Check warning on line 45 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:45:19
|
45 | DeepSuspend = 0b101_000_00,
| ^^^^^^^^^^^^ help: consider: `0b1010_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 44 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:44:17
|
44 | LowPower2 = 0b100_000_00,
| ^^^^^^^^^^^^ help: consider: `0b1000_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 43 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:43:15
|
43 | Standby = 0b011_000_00,
| ^^^^^^^^^^^^ help: consider: `0b0110_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 42 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:42:17
|
42 | LowPower1 = 0b010_000_00,
| ^^^^^^^^^^^^ help: consider: `0b0100_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 41 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:41:15
|
41 | Suspend = 0b001_000_00,
| ^^^^^^^^^^^^ help: consider: `0b0010_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 40 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:40:14
|
40 | Normal = 0b000_000_00,
| ^^^^^^^^^^^^ help: consider: `0b0000_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 34 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:34:14
|
34 | Hz1000 = 0b000_111_00,
| ^^^^^^^^^^^^ help: consider: `0b0001_1100`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 33 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:33:13
|
33 | Hz500 = 0b000_110_00,
| ^^^^^^^^^^^^ help: consider: `0b0001_1000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 32 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:32:13
|
32 | Hz250 = 0b000_101_00,
| ^^^^^^^^^^^^ help: consider: `0b0001_0100`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 31 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:31:13
|
31 | Hz125 = 0b000_100_00,
| ^^^^^^^^^^^^ help: consider: `0b0001_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 30 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:30:14
|
30 | Hz62_5 = 0b000_011_00,
| ^^^^^^^^^^^^ help: consider: `0b0000_1100`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 29 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:29:15
|
29 | Hz31_25 = 0b000_010_00,
| ^^^^^^^^^^^^ help: consider: `0b0000_1000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 28 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:28:15
|
28 | Hz15_63 = 0b000_001_00,
| ^^^^^^^^^^^^ help: consider: `0b0000_0100`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 27 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:27:14
|
27 | Hz7_81 = 0b000_000_00,
| ^^^^^^^^^^^^ help: consider: `0b0000_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 21 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:21:11
|
21 | G16 = 0b000_000_11,
| ^^^^^^^^^^^^ help: consider: `0b0000_0011`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 20 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:20:10
|
20 | G8 = 0b000_000_10,
| ^^^^^^^^^^^^ help: consider: `0b0000_0010`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 19 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:19:10
|
19 | G4 = 0b000_000_01,
| ^^^^^^^^^^^^ help: consider: `0b0000_0001`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 18 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:18:10
|
18 | G2 = 0b000_000_00,
| ^^^^^^^^^^^^ help: consider: `0b0000_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 6 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:6:37
|
6 | const ACC_OPERATION_MODE_MASK: u8 = 0b111_000_00;
| ^^^^^^^^^^^^ help: consider: `0b1110_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 5 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:5:32
|
5 | const ACC_BANDWIDTH_MASK: u8 = 0b000_111_00;
| ^^^^^^^^^^^^ help: consider: `0b0001_1100`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Check warning on line 4 in src/acc_config.rs
github-actions / clippy
digits of hex, binary or octal literal not in groups of equal size
warning: digits of hex, binary or octal literal not in groups of equal size
--> src/acc_config.rs:4:30
|
4 | const ACC_G_RANGE_MASK: u8 = 0b000_000_11;
| ^^^^^^^^^^^^ help: consider: `0b0000_0011`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
= note: `#[warn(clippy::unusual_byte_groupings)]` on by default