Skip to content

Commit b149c67

Browse files
committed
chore(aggregator): fix clippy warnings
1 parent c7b173e commit b149c67

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

mithril-aggregator/src/dependency_injection/builder/enablers/misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl DependenciesBuilder {
7474

7575
/// Builds a [SignatureConsumer]
7676
pub async fn build_signature_consumer(&mut self) -> Result<Arc<dyn SignatureConsumer>> {
77-
let signature_consumer = SignatureConsumerNoop::default();
77+
let signature_consumer = SignatureConsumerNoop;
7878

7979
Ok(Arc::new(signature_consumer))
8080
}

mithril-aggregator/src/services/signature_consumer/noop.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use async_trait::async_trait;
55
use super::SignatureConsumer;
66

77
/// A no-op implementation of the [SignatureConsumer] trait that will never return signatures.
8-
#[derive(Default)]
98
pub struct SignatureConsumerNoop;
109

1110
#[async_trait]

mithril-aggregator/src/services/signature_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl SequentialSignatureProcessor {
5353
impl SignatureProcessor for SequentialSignatureProcessor {
5454
async fn process_signatures(&self) -> StdResult<()> {
5555
if *self.stop.lock().await {
56-
warn!(self.logger, "Stoped signature processor");
56+
warn!(self.logger, "Stopped signature processor");
5757
return Ok(());
5858
}
5959

0 commit comments

Comments
 (0)