Skip to content

Update gd32f1 requirement from 0.8.0 to 0.9.0 #168

Update gd32f1 requirement from 0.8.0 to 0.9.0

Update gd32f1 requirement from 0.8.0 to 0.9.0 #168

Triggered via pull request March 26, 2024 15:18
Status Failure
Total duration 44s
Artifacts

clippy.yml

on: pull_request
clippy_check
33s
clippy_check
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 23 warnings
failed to resolve: could not find `interrupt` in `you_must_enable_the_rt_feature_for_the_pac_in_your_cargo_toml`: examples/timer-interrupt-rtic.rs#L29
error[E0433]: failed to resolve: could not find `interrupt` in `you_must_enable_the_rt_feature_for_the_pac_in_your_cargo_toml` --> examples/timer-interrupt-rtic.rs:29:1 | 29 | #[app(device = gd32f1x0_hal::pac, peripherals = true)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | could not find `interrupt` in `you_must_enable_the_rt_feature_for_the_pac_in_your_cargo_toml` | help: an enum with a similar name exists: `Interrupt` | = note: this error originates in the attribute macro `app` (in Nightly builds, run with -Z macro-backtrace for more info)
unresolved import `gd32f1x0_hal::pac::interrupt`: examples/blinky_timer_irq.rs#L21
error[E0432]: unresolved import `gd32f1x0_hal::pac::interrupt` --> examples/blinky_timer_irq.rs:21:11 | 21 | pac::{interrupt, Interrupt, Peripherals, Timer1}, | ^^^^^^^^^ | | | no `interrupt` in `gd32f130` | help: a similar name exists in the module (notice the capitalization): `Interrupt` | = help: consider importing this module instead: cortex_m::interrupt
clippy_check
Clippy had exited with the 101 exit code
call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes: src/time.rs#L247
warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes --> src/time.rs:247:9 | 247 | drop(dwt); | ^^^^^^^^^ | note: argument has type `cortex_m::peripheral::DWT` --> src/time.rs:247:14 | 247 | drop(dwt); | ^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop = note: `#[warn(clippy::drop_non_drop)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: src/rcu.rs#L171
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/rcu.rs:171:18 | 171 | unsafe { &(*RCU::ptr()).addrst() } | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*RCU::ptr()).addrst()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/rcu.rs#L165
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/rcu.rs:165:18 | 165 | unsafe { &(*RCU::ptr()).adden() } | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*RCU::ptr()).adden()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/rcu.rs#L144
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/rcu.rs:144:18 | 144 | unsafe { &(*RCU::ptr()).apb2rst() } | ^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*RCU::ptr()).apb2rst()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/rcu.rs#L139
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/rcu.rs:139:18 | 139 | unsafe { &(*RCU::ptr()).apb2en() } | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*RCU::ptr()).apb2en()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/rcu.rs#L114
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/rcu.rs:114:18 | 114 | unsafe { &(*RCU::ptr()).apb1rst() } | ^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*RCU::ptr()).apb1rst()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/rcu.rs#L109
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/rcu.rs:109:18 | 109 | unsafe { &(*RCU::ptr()).apb1en() } | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*RCU::ptr()).apb1en()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/rcu.rs#L89
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/rcu.rs:89:18 | 89 | unsafe { &(*RCU::ptr()).ahben() } | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*RCU::ptr()).ahben()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `slice`: src/i2c.rs#L663
warning: this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `slice` --> src/i2c.rs:663:42 | 663 | for (i, operation) in operations.into_iter().enumerate() { | ^^^^^^^^^ help: call directly: `iter_mut` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref = note: `#[warn(clippy::into_iter_on_ref)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: src/flash.rs#L447
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/flash.rs:447:18 | 447 | unsafe { &(*Fmc::ptr()).wp() } | ^^^^^^^^^^^^^^^^^^^ help: change this to: `(*Fmc::ptr()).wp()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/flash.rs#L434
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/flash.rs:434:18 | 434 | unsafe { &(*Fmc::ptr()).stat() } | ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*Fmc::ptr()).stat()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/flash.rs#L422
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/flash.rs:422:18 | 422 | unsafe { &(*Fmc::ptr()).obkey() } | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*Fmc::ptr()).obkey()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/flash.rs#L409
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/flash.rs:409:18 | 409 | unsafe { &(*Fmc::ptr()).obstat() } | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*Fmc::ptr()).obstat()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/flash.rs#L396
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/flash.rs:396:18 | 396 | unsafe { &(*Fmc::ptr()).key() } | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*Fmc::ptr()).key()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/flash.rs#L384
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/flash.rs:384:18 | 384 | unsafe { &(*Fmc::ptr()).ctl() } | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*Fmc::ptr()).ctl()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/flash.rs#L372
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/flash.rs:372:18 | 372 | unsafe { &(*Fmc::ptr()).addr() } | ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*Fmc::ptr()).addr()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: src/flash.rs#L360
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/flash.rs:360:18 | 360 | unsafe { &(*Fmc::ptr()).ws() } | ^^^^^^^^^^^^^^^^^^^ help: change this to: `(*Fmc::ptr()).ws()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
clippy_check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
clippy_check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, 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/
clippy_check
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/
clippy_check
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/
clippy_check
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/
clippy_check
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/