Skip to content

Commit 839283a

Browse files
fix clippy lint warnings
1 parent c20832e commit 839283a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

aggregation_mode/src/backend/fetcher.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,7 @@ impl ProofsFetcher {
196196
match self.rpc_provider.get_gas_price().await {
197197
Ok(price) => Ok(price),
198198
Err(e1) => Err(ProofsFetcherError::GasPriceError(format!(
199-
"gas price error: {:?}",
200-
e1
199+
"gas price error: {e1}"
201200
))),
202201
}
203202
}

aggregation_mode/src/backend/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,7 @@ impl ProofAggregator {
152152
let time_elapsed: Duration =
153153
Instant::now().duration_since(start_time) + Duration::from_secs(24 * 3600);
154154

155-
let gas_price = self
156-
.fetcher
157-
.get_gas_price()
158-
.await
159-
.map_err(|err| FetchingProofs(err))?;
155+
let gas_price = self.fetcher.get_gas_price().await.map_err(FetchingProofs)?;
160156

161157
if self.should_send_proof_to_verify_on_chain(
162158
time_elapsed,

0 commit comments

Comments
 (0)