Skip to content

Make map-type an enum and make map usage consistent #120

Make map-type an enum and make map usage consistent

Make map-type an enum and make map usage consistent #120

GitHub Actions / clippy succeeded Apr 1, 2024 in 0s

clippy

1 warning

Details

Results

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

Versions

  • rustc 1.79.0-nightly (805813650 2024-03-31)
  • cargo 1.79.0-nightly (a59aba136 2024-03-28)
  • clippy 0.1.79 (8058136 2024-03-31)

Annotations

Check warning on line 360 in src/analyzer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `Clone::clone()` may be inefficient

warning: assigning the result of `Clone::clone()` may be inefficient
   --> src/analyzer.rs:360:17
    |
360 |                 simple_inner = ix.type_.clone();
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `simple_inner.clone_from(&ix.type_)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
    = note: `#[warn(clippy::assigning_clones)]` on by default