Skip to content

Format cargo.toml files #66

Format cargo.toml files

Format cargo.toml files #66

GitHub Actions / clippy failed Aug 9, 2024 in 0s

clippy

1 error

Details

Results

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

Versions

  • rustc 1.80.1 (3f5fd8dd4 2024-08-06)
  • cargo 1.80.1 (376290515 2024-07-16)
  • clippy 0.1.80 (3f5fd8d 2024-08-06)

Annotations

Check failure on line 245 in ibc-clients/ics07-tendermint/types/src/client_state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `Option<Fraction>` which implements the `Copy` trait

error: using `clone` on type `Option<Fraction>` which implements the `Copy` trait
   --> ibc-clients/ics07-tendermint/types/src/client_state.rs:243:31
    |
243 |               let trust_level = raw
    |  _______________________________^
244 | |                 .trust_level
245 | |                 .clone()
    | |________________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
note: the lint level is defined here
   --> ibc-clients/ics07-tendermint/types/src/lib.rs:8:5
    |
8   |     warnings,
    |     ^^^^^^^^
    = note: `#[deny(clippy::clone_on_copy)]` implied by `#[deny(warnings)]`
help: try removing the `clone` call
    |
243 ~             let trust_level = raw
244 +                 .trust_level
    |