Skip to content

Commit

Permalink
chore: address clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstanley committed Nov 8, 2023
1 parent 4c2ec11 commit c99e179
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion offchain/advance-runner/src/broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl BrokerFacade {
.client
.consume_blocking(&self.inputs_stream, last_id)
.await;
return result.context(BrokerInternalSnafu);
result.context(BrokerInternalSnafu)
}

/// Produce the rollups claim if it isn't in the stream yet
Expand Down
2 changes: 1 addition & 1 deletion offchain/authority-claimer/src/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl DuplicateChecker for DefaultDuplicateChecker {
Err(e) => {
// If there's an InvalidClaimIndex error, we're asking for an index
// bigger than the current one, which means it's a new claim
if String::from(e.to_string()).contains("InvalidClaimIndex()") {
if e.to_string().contains("InvalidClaimIndex()") {
Ok(false)
} else {
info!("{:?}", e);
Expand Down
8 changes: 4 additions & 4 deletions offchain/test-fixtures/src/echo_dapp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async fn handle_advance(
.as_str()
.ok_or("Missing payload")?;
tracing::info!("Adding notice");
let notice = object! {"payload" => payload.clone()};
let notice = object! {"payload" => payload};
let req = hyper::Request::builder()
.method(hyper::Method::POST)
.header(hyper::header::CONTENT_TYPE, "application/json")
Expand All @@ -45,7 +45,7 @@ async fn handle_advance(
.as_str()
.ok_or("Missing msg_sender")?;
tracing::info!("Adding voucher");
let voucher = object! { "address" => rollup_address.clone(), "payload" => payload.clone()};
let voucher = object! { "address" => rollup_address, "payload" => payload};
let req = hyper::Request::builder()
.method(hyper::Method::POST)
.header(hyper::header::CONTENT_TYPE, "application/json")
Expand All @@ -67,7 +67,7 @@ async fn handle_inspect(
.as_str()
.ok_or("Missing payload")?;
tracing::info!("Adding report");
let report = object! {"payload" => payload.clone()};
let report = object! {"payload" => payload};
let req = hyper::Request::builder()
.method(hyper::Method::POST)
.header(hyper::header::CONTENT_TYPE, "application/json")
Expand All @@ -90,7 +90,7 @@ impl EchoDAppFixture {
loop {
tracing::info!("Sending finish");

let response = object! {"status" => status.clone()};
let response = object! {"status" => status};
let request = hyper::Request::builder()
.method(hyper::Method::POST)
.header(hyper::header::CONTENT_TYPE, "application/json")
Expand Down

0 comments on commit c99e179

Please sign in to comment.