clippy
6 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 6 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.0 (5680fa18f 2023-08-23)
- cargo 1.72.0 (103a7ff2e 2023-08-15)
- clippy 0.1.72 (5680fa1 2023-08-23)
Annotations
Check warning on line 73 in rpg_tools_rendering/src/rendering/equipment/shirt.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> rpg_tools_rendering/src/rendering/equipment/shirt.rs:73:30
|
73 | Neckline::V => add_v(&aabb, torso, builder, 0.2),
| ^^^^^ help: change this to: `aabb`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check warning on line 72 in rpg_tools_rendering/src/rendering/equipment/shirt.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> rpg_tools_rendering/src/rendering/equipment/shirt.rs:72:38
|
72 | Neckline::Scoop => add_round(&aabb, torso, builder, 0.5, 0.2),
| ^^^^^ help: change this to: `aabb`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check warning on line 71 in rpg_tools_rendering/src/rendering/equipment/shirt.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> rpg_tools_rendering/src/rendering/equipment/shirt.rs:71:40
|
71 | Neckline::None => add_straight(&aabb, torso, builder),
| ^^^^^ help: change this to: `aabb`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check warning on line 70 in rpg_tools_rendering/src/rendering/equipment/shirt.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> rpg_tools_rendering/src/rendering/equipment/shirt.rs:70:34
|
70 | Neckline::DeepV => add_v(&aabb, torso, builder, 0.4),
| ^^^^^ help: change this to: `aabb`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check warning on line 69 in rpg_tools_rendering/src/rendering/equipment/shirt.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> rpg_tools_rendering/src/rendering/equipment/shirt.rs:69:37
|
69 | Neckline::Crew => add_round(&aabb, torso, builder, 0.3, 0.1),
| ^^^^^ help: change this to: `aabb`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check warning on line 68 in rpg_tools_rendering/src/rendering/equipment/shirt.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> rpg_tools_rendering/src/rendering/equipment/shirt.rs:68:37
|
68 | Neckline::Boat => add_round(&aabb, torso, builder, 0.7, 0.05),
| ^^^^^ help: change this to: `aabb`
|
= 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