Skip to content

Bump env_logger from 0.11.2 to 0.11.3 #31

Bump env_logger from 0.11.2 to 0.11.3

Bump env_logger from 0.11.2 to 0.11.3 #31

GitHub Actions / clippy failed Mar 18, 2024 in 0s

clippy

12 errors

Details

Results

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

Versions

  • rustc 1.79.0-nightly (eb45c8444 2024-03-17)
  • cargo 1.79.0-nightly (2fe739fcf 2024-03-15)
  • clippy 0.1.78 (eb45c84 2024-03-17)

Annotations

Check failure on line 3257 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
    --> src/main.rs:3257:13
     |
3257 |             (*c).name = BROKEN.to_owned();
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `BROKEN.clone_into(&mut (*c).name)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 3257 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
    --> src/main.rs:3257:13
     |
3257 |             (*c).name = BROKEN.to_owned();
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `BROKEN.clone_into(&mut (*c).name)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 1993 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
    --> src/main.rs:1993:13
     |
1993 |             *text = t.to_str().unwrap().to_owned();
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `t.to_str().unwrap().clone_into(&mut text)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 1982 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
    --> src/main.rs:1982:13
     |
1982 |             *text = t.to_str().unwrap().to_owned();
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `t.to_str().unwrap().clone_into(&mut text)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 1993 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
    --> src/main.rs:1993:13
     |
1993 |             *text = t.to_str().unwrap().to_owned();
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `t.to_str().unwrap().clone_into(&mut text)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 1982 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
    --> src/main.rs:1982:13
     |
1982 |             *text = t.to_str().unwrap().to_owned();
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `t.to_str().unwrap().clone_into(&mut text)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 1845 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
    --> src/main.rs:1845:13
     |
1845 |             STEXT = "rwm-0.0.1".to_owned();
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `"rwm-0.0.1".clone_into(&mut STEXT)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 1845 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
    --> src/main.rs:1845:13
     |
1845 |             STEXT = "rwm-0.0.1".to_owned();
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `"rwm-0.0.1".clone_into(&mut STEXT)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 902 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/main.rs:902:9
    |
902 |         (*m).ltsymbol = (*(*m).lt[(*m).sellt]).symbol.to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `(*(*m).lt[(*m).sellt]).symbol.clone_into(&mut (*m).ltsymbol)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 902 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/main.rs:902:9
    |
902 |         (*m).ltsymbol = (*(*m).lt[(*m).sellt]).symbol.to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `(*(*m).lt[(*m).sellt]).symbol.clone_into(&mut (*m).ltsymbol)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 867 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/main.rs:867:9
    |
867 |         (*SELMON).ltsymbol = (*(*SELMON).lt[(*SELMON).sellt]).symbol.to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `(*(*SELMON).lt[(*SELMON).sellt]).symbol.clone_into(&mut (*SELMON).ltsymbol)`
    |
    = 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 867 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `ToOwned::to_owned()` may be inefficient

error: assigning the result of `ToOwned::to_owned()` may be inefficient
   --> src/main.rs:867:9
    |
867 |         (*SELMON).ltsymbol = (*(*SELMON).lt[(*SELMON).sellt]).symbol.to_owned();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `(*(*SELMON).lt[(*SELMON).sellt]).symbol.clone_into(&mut (*SELMON).ltsymbol)`
    |
    = 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)]`