Skip to content

Upgrade to Bevy 0.14 #43

Upgrade to Bevy 0.14

Upgrade to Bevy 0.14 #43

GitHub Actions / clippy failed Jul 10, 2024 in 0s

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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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 1930 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unreachable pattern

error: unreachable pattern
    --> src/main.rs:1930:9
     |
1930 |         _ => {
     |         ^
     |
     = note: `-D unreachable-patterns` implied by `-D warnings`
     = help: to override `-D warnings` add `#[allow(unreachable_patterns)]`

Check failure on line 1930 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unreachable pattern

error: unreachable pattern
    --> src/main.rs:1930:9
     |
1930 |         _ => {
     |         ^
     |
     = note: `-D unreachable-patterns` implied by `-D warnings`
     = help: to override `-D warnings` add `#[allow(unreachable_patterns)]`