Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix lint warnings #356

Merged
merged 2 commits into from
Oct 13, 2024
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 src/bin/dolos/init/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ pub fn run(
.into_diagnostic()
.context("parsing configuration")?;

super::bootstrap::run(&config, &super::bootstrap::Args::default(), &feedback)?;
super::bootstrap::run(&config, &super::bootstrap::Args::default(), feedback)?;

println!("\nDolos is ready!");
println!("- run `dolos daemon` to start the node");
Expand Down
2 changes: 1 addition & 1 deletion src/ledger/pparams/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ mod tests {
// in order
let blocks: Vec<_> = files
.iter()
.map(|x| MultiEraBlock::decode(&x).unwrap())
.map(|x| MultiEraBlock::decode(x).unwrap())
.sorted_by_key(|b| b.slot())
.collect();

Expand Down
2 changes: 1 addition & 1 deletion src/wal/redb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl WalStore {
excess, last_slot, start_slot, "wal history delta computed"
);

if excess <= 0 {
if excess == 0 {
debug!(delta, max_slots, excess, "no pruning necessary");
return Ok(());
}
Expand Down
2 changes: 1 addition & 1 deletion src/wal/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub fn slot_to_hash(slot: u64) -> BlockHash {

pub fn dummy_block_from_slot(slot: u64) -> RawBlock {
let bytes = &hex::decode(DUMMY_BLOCK_BYTES).unwrap();
let block = pallas::ledger::traverse::MultiEraBlock::decode(&bytes).unwrap();
let block = pallas::ledger::traverse::MultiEraBlock::decode(bytes).unwrap();

RawBlock {
slot,
Expand Down
Loading