Skip to content

fix: num-traits needs libm feature (#28) #22

fix: num-traits needs libm feature (#28)

fix: num-traits needs libm feature (#28) #22

Triggered via push January 24, 2024 14:16
Status Failure
Total duration 1m 19s
Artifacts

rust.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error and 30 warnings
build
Process completed with exit code 1.
this returns a `Result<_, ()>`: src/lib.rs#L758
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
getter function appears to return the wrong field: src/lib.rs#L670
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
all variants have the same prefix: `BadAcc`: src/acc_config.rs#L9
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
this is an outer doc comment and does not apply to the parent module or crate: src/lib.rs#L4
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 |
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L45
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L44
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L43
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L42
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L41
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L40
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L34
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L33
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L32
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L31
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L30
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L29
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L28
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L27
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L21
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L20
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L19
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L18
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L6
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L5
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
digits of hex, binary or octal literal not in groups of equal size: src/acc_config.rs#L4
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
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions/checkout@v2, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/