Skip to content

Add some words

Add some words #78

GitHub Actions / clippy failed May 23, 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.78.0 (9b00956e5 2024-04-29)
  • cargo 1.78.0 (54d8815d0 2024-03-26)
  • clippy 0.1.78 (9b00956 2024-04-29)

Annotations

Check failure on line 360 in src/typing.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/typing.rs:360:21
    |
360 |                     buf = leftover.to_string().clone();
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `buf.clone_from(&leftover.to_string())`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 360 in src/typing.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/typing.rs:360:21
    |
360 |                     buf = leftover.to_string().clone();
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `buf.clone_from(&leftover.to_string())`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 206 in src/typing.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/typing.rs:206:13
    |
206 |             target.displayed_chunks = new_target.displayed_chunks.clone();
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `target.displayed_chunks.clone_from(&new_target.displayed_chunks)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 205 in src/typing.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/typing.rs:205:13
    |
205 |             target.typed_chunks = new_target.typed_chunks.clone();
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `target.typed_chunks.clone_from(&new_target.typed_chunks)`
    |
    = 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 206 in src/typing.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/typing.rs:206:13
    |
206 |             target.displayed_chunks = new_target.displayed_chunks.clone();
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `target.displayed_chunks.clone_from(&new_target.displayed_chunks)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 205 in src/typing.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/typing.rs:205:13
    |
205 |             target.typed_chunks = new_target.typed_chunks.clone();
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `target.typed_chunks.clone_from(&new_target.typed_chunks)`
    |
    = 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)]`