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

chore: fix wasm warnings #1312

Merged
merged 1 commit into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ethers-providers/src/pending_escalator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ where
poll_broadcast_fut!(cx, this, fut);
}
Sleeping(delay) => {
futures_util::ready!(delay.as_mut().poll(cx));
let _ready = futures_util::ready!(delay.as_mut().poll(cx));
// if broadcast timer has elapsed and if we have a TX to
// broadcast, broadcast it
if this.last.elapsed() > *this.broadcast_interval {
Expand Down
2 changes: 1 addition & 1 deletion ethers-providers/src/pending_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl<'a, P: JsonRpcClient> Future for PendingTransaction<'a, P> {

match this.state {
PendingTxState::InitialDelay(fut) => {
futures_util::ready!(fut.as_mut().poll(ctx));
let _ready = futures_util::ready!(fut.as_mut().poll(ctx));
tracing::debug!("Starting to poll pending tx {:?}", *this.tx_hash);
let fut = Box::pin(this.provider.get_transaction(*this.tx_hash));
rewake_with_new_state!(ctx, this, PendingTxState::GettingTx(fut));
Expand Down