Skip to content

Prepare 0.5.3 release #215

Prepare 0.5.3 release

Prepare 0.5.3 release #215

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy succeeded Aug 21, 2023 in 0s

clippy

6 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 6
Note 0
Help 0

Versions

  • rustc 1.71.1 (eb26296b5 2023-08-03)
  • cargo 1.71.1 (7f1d04c00 2023-07-29)
  • clippy 0.1.71 (eb26296 2023-08-03)

Annotations

Check warning on line 26 in raltool/src/transform/rename.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> raltool/src/transform/rename.rs:26:48
   |
26 |         super::map_device_peripheral_names(ir, &renamer);
   |                                                ^^^^^^^^ help: change this to: `renamer`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 25 in raltool/src/transform/rename.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> raltool/src/transform/rename.rs:25:35
   |
25 |         super::map_enum_names(ir, &renamer);
   |                                   ^^^^^^^^ help: change this to: `renamer`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 24 in raltool/src/transform/rename.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> raltool/src/transform/rename.rs:24:39
   |
24 |         super::map_fieldset_names(ir, &renamer);
   |                                       ^^^^^^^^ help: change this to: `renamer`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 23 in raltool/src/transform/rename.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> raltool/src/transform/rename.rs:23:36
   |
23 |         super::map_block_names(ir, &renamer);
   |                                    ^^^^^^^^ help: change this to: `renamer`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 22 in raltool/src/transform/rename.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> raltool/src/transform/rename.rs:22:37
   |
22 |         super::map_device_names(ir, &renamer);
   |                                     ^^^^^^^^ help: change this to: `renamer`
   |
   = 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

Check warning on line 75 in raltool/src/generate/device.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting to the same type is unnecessary (`u64` -> `u64`)

warning: casting to the same type is unnecessary (`u64` -> `u64`)
  --> raltool/src/generate/device.rs:75:37
   |
75 |             let address = util::hex(peripheral.base_address as u64);
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `peripheral.base_address`
   |
   = 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