coinbase_tx is a vector #77
Annotations
11 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, emibcn/[email protected], andymckay/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run Clippy:
json/src/lib.rs#L28
warning: deref which would be done by auto-deref
--> json/src/lib.rs:28:25
|
28 | s.serialize_str(&*hex::encode(b))
| ^^^^^^^^^^^^^^^^ help: try: `&hex::encode(b)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `#[warn(clippy::explicit_auto_deref)]` on by default
|
Run Clippy:
json/src/lib.rs#L33
warning: question mark operator is useless here
--> json/src/lib.rs:33:9
|
33 | Ok(FromHex::from_hex(&hex_str).map_err(D::Error::custom)?)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `FromHex::from_hex(&hex_str).map_err(D::Error::custom)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
= note: `#[warn(clippy::needless_question_mark)]` on by default
|
Run Clippy:
json/src/lib.rs#L33
warning: the borrowed expression implements the required traits
--> json/src/lib.rs:33:30
|
33 | Ok(FromHex::from_hex(&hex_str).map_err(D::Error::custom)?)
| ^^^^^^^^ help: change this to: `hex_str`
|
= 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
|
Run Clippy:
json/src/lib.rs#L44
warning: deref which would be done by auto-deref
--> json/src/lib.rs:44:48
|
44 | Some(ref b) => s.serialize_str(&*hex::encode(b)),
| ^^^^^^^^^^^^^^^^ help: try: `&hex::encode(b)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
Run Clippy:
json/src/lib.rs#L50
warning: the borrowed expression implements the required traits
--> json/src/lib.rs:50:39
|
50 | Ok(Some(FromHex::from_hex(&hex_str).map_err(D::Error::custom)?))
| ^^^^^^^^ help: change this to: `hex_str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
Run Clippy:
client/src/client.rs#L10
warning: this import is redundant
--> client/src/client.rs:10:1
|
10 | use jsonrpc;
| ^^^^^^^^^^^^ help: remove it entirely
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
= note: `#[warn(clippy::single_component_path_imports)]` on by default
|
Run Clippy:
client/src/client.rs#L11
warning: this import is redundant
--> client/src/client.rs:11:1
|
11 | use serde;
| ^^^^^^^^^^ help: remove it entirely
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
|
Run Clippy:
client/src/client.rs#L12
warning: this import is redundant
--> client/src/client.rs:12:1
|
12 | use serde_json;
| ^^^^^^^^^^^^^^^ help: remove it entirely
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
|
Run Clippy:
client/src/client.rs#L72
warning: the following explicit lifetimes could be elided: 'b
--> client/src/client.rs:72:24
|
72 | fn handle_defaults<'a, 'b>(
| ^^
73 | args: &'a mut [serde_json::Value],
74 | defaults: &'b [serde_json::Value],
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
72 ~ fn handle_defaults<'a>(
73 | args: &'a mut [serde_json::Value],
74 ~ defaults: &[serde_json::Value],
|
|
Run Clippy:
client/src/client.rs#L155
warning: the borrowed expression implements the required traits
--> client/src/client.rs:155:25
|
155 | &[into_json(&subnet)?, into_json("add")?, into_json(&bantime)?, into_json(&absolute)?],
| ^^^^^^^ help: change this to: `subnet`
|
= 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
|
The logs for this run have expired and are no longer available.
Loading