Upgrade to Bevy 0.14 #41
clippy
6 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 6 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0 (129f3b996 2024-06-10)
- cargo 1.79.0 (ffa9cf99a 2024-06-03)
- clippy 0.1.79 (129f3b9 2024-06-10)
Annotations
Check failure on line 1814 in src/main.rs
github-actions / clippy
assigning the result of `Clone::clone()` may be inefficient
error: assigning the result of `Clone::clone()` may be inefficient
--> src/main.rs:1814:9
|
1814 | line_state.segments = segments.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `line_state.segments.clone_from(segments)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
Check failure on line 1809 in src/main.rs
github-actions / clippy
assigning the result of `Clone::clone()` may be inefficient
error: assigning the result of `Clone::clone()` may be inefficient
--> src/main.rs:1809:9
|
1809 | line_state.segments = segments.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `line_state.segments.clone_from(segments)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
= note: `-D clippy::assigning-clones` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::assigning_clones)]`
Check failure on line 1814 in src/main.rs
github-actions / clippy
assigning the result of `Clone::clone()` may be inefficient
error: assigning the result of `Clone::clone()` may be inefficient
--> src/main.rs:1814:9
|
1814 | line_state.segments = segments.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `line_state.segments.clone_from(segments)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
Check failure on line 1809 in src/main.rs
github-actions / clippy
assigning the result of `Clone::clone()` may be inefficient
error: assigning the result of `Clone::clone()` may be inefficient
--> src/main.rs:1809:9
|
1809 | line_state.segments = segments.clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `line_state.segments.clone_from(segments)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
= note: `-D clippy::assigning-clones` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::assigning_clones)]`
Check failure on line 16 in src/level.rs
github-actions / clippy
field `0` is never read
error: field `0` is never read
--> src/level.rs:16:13
|
16 | Polygon(Vec<Vec2>),
| ------- ^^^^^^^^^
| |
| field in this variant
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
16 | Polygon(()),
| ~~
Check failure on line 16 in src/level.rs
github-actions / clippy
field `0` is never read
error: field `0` is never read
--> src/level.rs:16:13
|
16 | Polygon(Vec<Vec2>),
| ------- ^^^^^^^^^
| |
| field in this variant
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
16 | Polygon(()),
| ~~