Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
piniom committed Mar 11, 2024
1 parent d3807b2 commit 8938c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/account_sdk/src/transaction_waiter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ where

pub fn new(tx: FieldElement, provider: &'a P) -> Self {
Self {
provider: provider.into(),
provider,
tx_hash: tx,
must_succeed: true,
finality_status: None,
Expand Down Expand Up @@ -123,7 +123,7 @@ where
}

pub async fn wait(self) -> Result<MaybePendingTransactionReceipt, TransactionWaitingError> {
let timeout = self.timeout.clone();
let timeout = self.timeout;
select! {
result = self.wait_without_timeout().fuse() => result,
_ = Sleeper::sleep(timeout).fuse() => Err(TransactionWaitingError::Timeout),
Expand Down

0 comments on commit 8938c95

Please sign in to comment.