From 7c145c090a41f25c5602abb82b014a54c49981a4 Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Wed, 16 Oct 2024 21:34:39 -0300 Subject: [PATCH] fix lints --- pallas-applying/src/shelley_ma.rs | 5 +++-- pallas-traverse/src/update.rs | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pallas-applying/src/shelley_ma.rs b/pallas-applying/src/shelley_ma.rs index 3a436d3b..036ef178 100644 --- a/pallas-applying/src/shelley_ma.rs +++ b/pallas-applying/src/shelley_ma.rs @@ -408,7 +408,8 @@ fn compute_script_hash(script: &NativeScript) -> PolicyId { pallas_crypto::hash::Hasher::<224>::hash(&payload) } -// Checks all certificates in order, and counts the relevant ones for computing deposits. +// Checks all certificates in order, and counts the relevant ones for computing +// deposits. #[allow(clippy::too_many_arguments)] fn check_certificates( cert_opt: &Option>, @@ -591,7 +592,7 @@ fn check_pool_retirement( if !ps.pool_params.contains_key(pool_hash) { return Err(ShelleyMA(PoolNotRegistered)); } - if (*cepoch < *repoch) & (*repoch <= *cepoch + *emax as u64) { + if (*cepoch < *repoch) & (*repoch <= *cepoch + *emax) { ps.retiring.insert(*pool_hash, *repoch); Ok(()) } else { diff --git a/pallas-traverse/src/update.rs b/pallas-traverse/src/update.rs index 674b8879..b135499d 100644 --- a/pallas-traverse/src/update.rs +++ b/pallas-traverse/src/update.rs @@ -79,7 +79,6 @@ impl<'b> MultiEraUpdate<'b> { let up = Box::new(Cow::Owned(up)); Ok(MultiEraUpdate::Conway(up)) } - _ => unimplemented!("unimplemented era"), } }