Add block_timestamp, block_hash as optional columns to transactions (… #255
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 (7adc89b69 2023-11-07)
- cargo 1.75.0-nightly (65e297d1e 2023-11-03)
- clippy 0.1.75 (7adc89b 2023-11-07)
Annotations
Check warning on line 268 in crates/cli/src/args.rs
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
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
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
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
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
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
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