Skip to content

fix event decoding and add u256 / i256 support (#115) #268

fix event decoding and add u256 / i256 support (#115)

fix event decoding and add u256 / i256 support (#115) #268

GitHub Actions / clippy succeeded Nov 13, 2023 in 0s

clippy

7 warnings

Details

Results

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

Versions

  • rustc 1.76.0-nightly (2b603f95a 2023-11-12)
  • cargo 1.76.0-nightly (6790a5127 2023-11-10)
  • clippy 0.1.75 (2b603f9 2023-11-12)

Annotations

Check warning on line 268 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:268:34
    |
268 |             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 266 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:266:52
    |
266 |         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 265 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:265:56
    |
265 |         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 268 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:268:34
    |
268 |             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 266 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:266:52
    |
266 |         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 265 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:265:56
    |
265 |         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