Skip to content

Commit f908f37

Browse files
committed
Fix clippy suggestions and remove useless comments
1 parent 632a99b commit f908f37

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

mithril-signer/src/runtime/runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ mod tests {
980980
);
981981

982982
let expected = single_signer
983-
.compute_single_signatures(&message, &signers_with_stake, &protocol_initializer)
983+
.compute_single_signatures(&message, signers_with_stake, &protocol_initializer)
984984
.expect("compute_single_signatures should not fail");
985985

986986
let runner = init_runner(Some(services), None).await;

mithril-signer/src/services/epoch_service.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,14 @@ use crate::RunnerError;
1717
/// Errors dedicated to the CertifierService.
1818
#[derive(Debug, Error)]
1919
pub enum EpochServiceError {
20-
// /// One of the data that is held for an epoch duration by the service was not available.
21-
// #[error("Epoch service could not obtain {1} for epoch {0}")]
22-
// UnavailableData(Epoch, String),
2320
/// Raised when service has not collected data at least once.
2421
#[error("Epoch service was not initialized, the function `inform_epoch` must be called first")]
2522
NotYetInitialized,
26-
// /// Raised when service has not computed data for its current epoch.
27-
// #[error(
28-
// "No data computed for epoch {0}, the function `precompute_epoch_data` must be called first"
29-
// )]
30-
// NotYetComputed(Epoch),
3123
}
3224

3325
/// Service that aggregates all data that don't change in a given epoch.
3426
#[async_trait]
3527
pub trait EpochService: Sync + Send {
36-
// TODO should we pass ean EpochSettings or the individual fields ?
3728
/// Inform the service a new epoch has been detected, telling it to update its
3829
/// internal state for the new epoch.
3930
async fn inform_epoch_settings(&mut self, epoch_settings: EpochSettings) -> StdResult<()>;
@@ -272,7 +263,7 @@ mod tests {
272263

273264
#[tokio::test]
274265
async fn test_signers_with_stake_are_available_after_register_epoch_settings_call() {
275-
fn build_stake_distribution(signers: &Vec<Signer>, first_stake: u64) -> StakeDistribution {
266+
fn build_stake_distribution(signers: &[Signer], first_stake: u64) -> StakeDistribution {
276267
signers
277268
.iter()
278269
.enumerate()

0 commit comments

Comments
 (0)