Skip to content

Commit

Permalink
chore: fix wasm warnings (gakonst#1312)
Browse files Browse the repository at this point in the history
  • Loading branch information
meetmangukiya authored and mattsse committed May 28, 2022
1 parent de2896b commit 1a5c8ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 1a5c8ce

Please sign in to comment.