Skip to content

Commit c0b7d22

Browse files
committed
lint
1 parent 808e239 commit c0b7d22

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/bitcoin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77
time::{Duration, Instant},
88
};
99

10-
use anyhow::{anyhow, bail, Context};
10+
use anyhow::{bail, Context};
1111
use async_trait::async_trait;
1212
use bitcoin::Address;
1313
use bitcoincore_rpc::{json::AddressType::Bech32m, Auth, Client, RpcApi};

src/config/test_case.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ use std::{env, path::PathBuf, time::Duration};
22

33
use tempfile::TempDir;
44

5-
use crate::utils::generate_test_id;
6-
75
use super::CitreaMode;
6+
use crate::utils::generate_test_id;
87

98
#[derive(Clone, Default)]
109
pub struct TestCaseEnv {

src/node.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,7 @@ where
205205
let mut response = Err(anyhow!("initial response value"));
206206

207207
while response.is_err() && (start.elapsed() < timeout) {
208-
response = self
209-
.client
210-
.ledger_get_head_soft_confirmation_height()
211-
.await;
208+
response = self.client.ledger_get_head_soft_confirmation_height().await;
212209
sleep(Duration::from_millis(500)).await;
213210
}
214211
match response {
@@ -219,7 +216,6 @@ where
219216
e
220217
)
221218
}
222-
223219
}
224220

225221
fn client(&self) -> &Self::Client {

0 commit comments

Comments
 (0)