Skip to content

add geth_opcodes dataset #233

add geth_opcodes dataset

add geth_opcodes dataset #233

GitHub Actions / clippy succeeded Nov 5, 2023 in 1s

clippy

7 warnings

Details

Results

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

Versions

  • rustc 1.75.0-nightly (4b85902b4 2023-11-04)
  • cargo 1.75.0-nightly (65e297d1e 2023-11-03)
  • clippy 0.1.75 (4b85902 2023-11-04)

Annotations

Check warning on line 264 in crates/cli/src/args.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> crates/cli/src/args.rs:264:34
    |
264 |             serde_json::to_value(&default_struct).expect("Failed to serialize to JSON");
    |                                  ^^^^^^^^^^^^^^^ help: change this to: `default_struct`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 262 in crates/cli/src/args.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> crates/cli/src/args.rs:262:52
    |
262 |         let s2_value: Value = serde_json::to_value(&other).expect("Failed to serialize to JSON");
    |                                                    ^^^^^^ help: change this to: `other`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 261 in crates/cli/src/args.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> crates/cli/src/args.rs:261:56
    |
261 |         let mut s1_value: Value = serde_json::to_value(&self).expect("Failed to serialize to JSON");
    |                                                        ^^^^^ help: change this to: `self`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
    = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default

Check warning on line 264 in crates/cli/src/args.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> crates/cli/src/args.rs:264:34
    |
264 |             serde_json::to_value(&default_struct).expect("Failed to serialize to JSON");
    |                                  ^^^^^^^^^^^^^^^ help: change this to: `default_struct`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 262 in crates/cli/src/args.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> crates/cli/src/args.rs:262:52
    |
262 |         let s2_value: Value = serde_json::to_value(&other).expect("Failed to serialize to JSON");
    |                                                    ^^^^^^ help: change this to: `other`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 261 in crates/cli/src/args.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> crates/cli/src/args.rs:261:56
    |
261 |         let mut s1_value: Value = serde_json::to_value(&self).expect("Failed to serialize to JSON");
    |                                                        ^^^^^ help: change this to: `self`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
    = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default

Check warning on line 46 in crates/freeze/src/types/chunks/subchunks.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `chunks.get(0)`

warning: accessing first element with `chunks.get(0)`
  --> crates/freeze/src/types/chunks/subchunks.rs:46:26
   |
46 |     match (chunks.len(), chunks.get(0)) {
   |                          ^^^^^^^^^^^^^ help: try: `chunks.first()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
   = note: `#[warn(clippy::get_first)]` on by default