Skip to content

Commit d3aebb3

Browse files
committed
Clippy
1 parent 52495e4 commit d3aebb3

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/bitcoin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl Restart for BitcoinNode {
268268

269269
async fn start(&mut self, config: Option<Self::Config>) -> Result<()> {
270270
if let Some(config) = config {
271-
self.config = config
271+
self.config = config;
272272
}
273273
self.spawn_output = Self::spawn(&self.config, &self.docker_env).await?;
274274

@@ -361,7 +361,7 @@ async fn wait_for_rpc_ready(client: &Client, timeout: Option<Duration>) -> Resul
361361
Ok(_) => return Ok(()),
362362
Err(e) => {
363363
trace!("[wait_for_rpc_ready] error {e}");
364-
sleep(Duration::from_millis(500)).await
364+
sleep(Duration::from_millis(500)).await;
365365
}
366366
}
367367
}

src/citrea_config/rollup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const fn default_max_subscriptions_per_connection() -> u32 {
8686
pub struct StorageConfig {
8787
/// Path that can be utilized by concrete rollup implementation
8888
pub path: PathBuf,
89-
/// File descriptor limit for RocksDB
89+
/// File descriptor limit for `RocksDB`
9090
pub db_max_open_files: Option<i32>,
9191
}
9292

src/citrea_config/sequencer.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl Default for SequencerConfig {
2929
deposit_mempool_fetch_limit: 10,
3030
block_production_interval_ms: 100,
3131
da_update_interval_ms: 100,
32-
mempool_conf: Default::default(),
32+
mempool_conf: SequencerMempoolConfig::default(),
3333
}
3434
}
3535
}
@@ -57,11 +57,11 @@ pub struct SequencerMempoolConfig {
5757
impl Default for SequencerMempoolConfig {
5858
fn default() -> Self {
5959
Self {
60-
pending_tx_limit: 100000,
60+
pending_tx_limit: 100_000,
6161
pending_tx_size: 200,
62-
queue_tx_limit: 100000,
62+
queue_tx_limit: 100_000,
6363
queue_tx_size: 200,
64-
base_fee_tx_limit: 100000,
64+
base_fee_tx_limit: 100_000,
6565
base_fee_tx_size: 200,
6666
max_account_slots: 16,
6767
}

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl Client {
8686
self.client
8787
.get_sequencer_commitments_on_slot_by_hash(hash)
8888
.await
89-
.map_err(|e| e.into())
89+
.map_err(Into::into)
9090
}
9191

9292
pub async fn ledger_get_head_soft_confirmation_height(&self) -> Result<u64> {

src/config/rollup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl From<BitcoinConfig> for BitcoinServiceConfig {
6666
node_password: v.rpc_password,
6767
network: v.network,
6868
da_private_key: None,
69-
tx_backup_dir: "".to_string(),
69+
tx_backup_dir: String::new(),
7070
}
7171
}
7272
}

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn get_workspace_root() -> PathBuf {
2727
.to_path_buf()
2828
}
2929

30-
/// Get citrea path from CITREA_E2E_TEST_BINARY env
30+
/// Get citrea path from `CITREA_E2E_TEST_BINARY` env
3131
pub fn get_citrea_path() -> Result<PathBuf> {
3232
std::env::var("CITREA_E2E_TEST_BINARY")
3333
.map(PathBuf::from)

0 commit comments

Comments
 (0)