Skip to content

Refactor-pgia-pounder-crates #1376

Refactor-pgia-pounder-crates

Refactor-pgia-pounder-crates #1376

Triggered via pull request February 11, 2025 11:48
@jordensjordens
synchronize #1015
Status Success
Total duration 11s
Artifacts

labeler.yml

on: pull_request_target
labeler
2s
labeler
Fit to window
Zoom out
Zoom in

Annotations

8 warnings
creating a mutable reference to mutable static is discouraged: src/hardware/setup.rs#L663
warning: creating a mutable reference to mutable static is discouraged --> src/hardware/setup.rs:663:29 | 663 | let ring = unsafe { DES_RING.write(ethernet::DesRing::new()) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html> = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
creating a mutable reference to mutable static is discouraged: src/hardware/adc.rs#L378
warning: creating a mutable reference to mutable static is discouraged --> src/hardware/adc.rs:378:25 | 378 | ADC_BUF.write(Default::default()) | ^^^^^^^ mutable reference to mutable static ... 448 | / adc_input!( 449 | | Adc1Input, 1, Stream3, Stream4, Stream5, SPI3, Channel2, Tim2Ch2, Channel2, 450 | | Tim3Ch2 451 | | ); | |_- in this macro invocation | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html> = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives = note: this warning originates in the macro `adc_input` (in Nightly builds, run with -Z macro-backtrace for more info)
creating a mutable reference to mutable static is discouraged: src/hardware/adc.rs#L341
warning: creating a mutable reference to mutable static is discouraged --> src/hardware/adc.rs:341:25 | 341 | SPI_START.write([0x201]) | ^^^^^^^^^ mutable reference to mutable static ... 448 | / adc_input!( 449 | | Adc1Input, 1, Stream3, Stream4, Stream5, SPI3, Channel2, Tim2Ch2, Channel2, 450 | | Tim3Ch2 451 | | ); | |_- in this macro invocation | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html> = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives = note: this warning originates in the macro `adc_input` (in Nightly builds, run with -Z macro-backtrace for more info)
creating a mutable reference to mutable static is discouraged: src/hardware/adc.rs#L298
warning: creating a mutable reference to mutable static is discouraged --> src/hardware/adc.rs:298:25 | 298 | SPI_EOT_CLEAR.write([1 << 3]) | ^^^^^^^^^^^^^ mutable reference to mutable static ... 448 | / adc_input!( 449 | | Adc1Input, 1, Stream3, Stream4, Stream5, SPI3, Channel2, Tim2Ch2, Channel2, 450 | | Tim3Ch2 451 | | ); | |_- in this macro invocation | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html> = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives = note: this warning originates in the macro `adc_input` (in Nightly builds, run with -Z macro-backtrace for more info)
creating a mutable reference to mutable static is discouraged: src/hardware/adc.rs#L378
warning: creating a mutable reference to mutable static is discouraged --> src/hardware/adc.rs:378:25 | 378 | ADC_BUF.write(Default::default()) | ^^^^^^^ mutable reference to mutable static ... 444 | / adc_input!( 445 | | Adc0Input, 0, Stream0, Stream1, Stream2, SPI2, Channel1, Tim2Ch1, Channel1, 446 | | Tim3Ch1 447 | | ); | |_- in this macro invocation | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html> = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives = note: this warning originates in the macro `adc_input` (in Nightly builds, run with -Z macro-backtrace for more info)
creating a mutable reference to mutable static is discouraged: src/hardware/adc.rs#L341
warning: creating a mutable reference to mutable static is discouraged --> src/hardware/adc.rs:341:25 | 341 | SPI_START.write([0x201]) | ^^^^^^^^^ mutable reference to mutable static ... 444 | / adc_input!( 445 | | Adc0Input, 0, Stream0, Stream1, Stream2, SPI2, Channel1, Tim2Ch1, Channel1, 446 | | Tim3Ch1 447 | | ); | |_- in this macro invocation | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html> = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives = note: this warning originates in the macro `adc_input` (in Nightly builds, run with -Z macro-backtrace for more info)
creating a mutable reference to mutable static is discouraged: src/hardware/adc.rs#L298
warning: creating a mutable reference to mutable static is discouraged --> src/hardware/adc.rs:298:25 | 298 | SPI_EOT_CLEAR.write([1 << 3]) | ^^^^^^^^^^^^^ mutable reference to mutable static ... 444 | / adc_input!( 445 | | Adc0Input, 0, Stream0, Stream1, Stream2, SPI2, Channel1, Tim2Ch1, Channel1, 446 | | Tim3Ch1 447 | | ); | |_- in this macro invocation | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html> = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives = note: `#[warn(static_mut_refs)]` on by default = note: this warning originates in the macro `adc_input` (in Nightly builds, run with -Z macro-backtrace for more info)
unused import: `bitbybit::bitenum`: src/hardware/pounder/mod.rs#L6
warning: unused import: `bitbybit::bitenum` --> src/hardware/pounder/mod.rs:6:5 | 6 | use bitbybit::bitenum; | ^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default