Skip to content

Commit fce53c0

Browse files
committed
refactor: remove no-op method calls
Since rust 1.73.0, redundant method calls that don't change anything are flagged as a warning by the compiler. This commit removes these method calls and allows the CI checks to pass. See https://releases.rs/docs/1.73.0/ for further reference
1 parent b997095 commit fce53c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

offchain/test-fixtures/src/echo_dapp.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async fn handle_advance(
3232
.as_str()
3333
.ok_or("Missing payload")?;
3434
tracing::info!("Adding notice");
35-
let notice = object! {"payload" => payload.clone()};
35+
let notice = object! {"payload" => payload};
3636
let req = hyper::Request::builder()
3737
.method(hyper::Method::POST)
3838
.header(hyper::header::CONTENT_TYPE, "application/json")
@@ -45,7 +45,7 @@ async fn handle_advance(
4545
.as_str()
4646
.ok_or("Missing msg_sender")?;
4747
tracing::info!("Adding voucher");
48-
let voucher = object! { "address" => rollup_address.clone(), "payload" => payload.clone()};
48+
let voucher = object! { "address" => rollup_address, "payload" => payload};
4949
let req = hyper::Request::builder()
5050
.method(hyper::Method::POST)
5151
.header(hyper::header::CONTENT_TYPE, "application/json")
@@ -67,7 +67,7 @@ async fn handle_inspect(
6767
.as_str()
6868
.ok_or("Missing payload")?;
6969
tracing::info!("Adding report");
70-
let report = object! {"payload" => payload.clone()};
70+
let report = object! {"payload" => payload};
7171
let req = hyper::Request::builder()
7272
.method(hyper::Method::POST)
7373
.header(hyper::header::CONTENT_TYPE, "application/json")
@@ -90,7 +90,7 @@ impl EchoDAppFixture {
9090
loop {
9191
tracing::info!("Sending finish");
9292

93-
let response = object! {"status" => status.clone()};
93+
let response = object! {"status" => status};
9494
let request = hyper::Request::builder()
9595
.method(hyper::Method::POST)
9696
.header(hyper::header::CONTENT_TYPE, "application/json")

0 commit comments

Comments
 (0)