Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Remove useless call to into
Browse files Browse the repository at this point in the history
clippy emits various warnings of form:

  warning: useless conversion to the same type: `&str`

As suggested, remove the call to `into()`.
  • Loading branch information
tcharding committed May 31, 2024
1 parent ef5c7ba commit 6ca835d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration_test/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fn main() {

fn test_get_network_info(cl: &Client) {
let request = Request {
method: "getnetworkinfo".into(),
method: "getnetworkinfo",
params: None,
id: serde_json::json!(1),
jsonrpc: Some("2.0"),
Expand All @@ -157,7 +157,7 @@ fn test_get_block_hash_list(cl: &Client) {
let raw_value = Some(to_raw_value(&param).unwrap());

let request = Request {
method: "getblockhash".into(),
method: "getblockhash",
params: raw_value.as_deref(),
id: serde_json::json!(2),
jsonrpc: Some("2.0"),
Expand All @@ -175,7 +175,7 @@ fn test_get_block_hash_named(cl: &Client) {
let raw_value = Some(to_raw_value(&param).unwrap());

let request = Request {
method: "getblockhash".into(),
method: "getblockhash",
params: raw_value.as_deref(),
id: serde_json::json!(2),
jsonrpc: Some("2.0"),
Expand Down

0 comments on commit 6ca835d

Please sign in to comment.