Skip to content

Merge pull request #34 from gd32-rust/dependabot/cargo/gd32f1-0.8.0 #133

Merge pull request #34 from gd32-rust/dependabot/cargo/gd32f1-0.8.0

Merge pull request #34 from gd32-rust/dependabot/cargo/gd32f1-0.8.0 #133

Triggered via push October 17, 2023 13:31
Status Success
Total duration 26s
Artifacts

rustfmt.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

9 warnings
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Rustfmt
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/
Rustfmt
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/
Rustfmt
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/
Rustfmt
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/
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 `gd32f1::gd32f130::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
casting to the same type is unnecessary (`u32` -> `u32`): src/flash.rs#L205
warning: casting to the same type is unnecessary (`u32` -> `u32`) --> src/flash.rs:205:37 | 205 | if offset + length as u32 > self.flash_sz.kbytes() as u32 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.flash_sz.kbytes()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
casting to the same type is unnecessary (`u32` -> `u32`): src/flash.rs#L174
warning: casting to the same type is unnecessary (`u32` -> `u32`) --> src/flash.rs:174:56 | 174 | let write_address = (FLASH_START + idx as u32) as *const u16; | ^^^^^^^^^^ help: try: `idx` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
casting to the same type is unnecessary (`u32` -> `u32`): src/flash.rs#L117
warning: casting to the same type is unnecessary (`u32` -> `u32`) --> src/flash.rs:117:37 | 117 | if offset + length as u32 > self.flash_sz.kbytes() as u32 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.flash_sz.kbytes()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default