Skip to content

Commit f830d6e

Browse files
committed
Clippy feedback is good.
1 parent 9fa4caa commit f830d6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common/src/messages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ pub enum CardanoMessage {
311311

312312
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
313313
pub enum SnapshotMessage {
314-
Startup(), // subscribers should listen for incremental snapshot data
314+
Startup, // subscribers should listen for incremental snapshot data
315315
Bootstrap(SnapshotStateMessage),
316316
DumpRequest(SnapshotDumpMessage),
317317
Dump(SnapshotStateMessage),

modules/snapshot_bootstrapper/src/snapshot_bootstrapper.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ impl SnapshotHandler {
101101
.publish(
102102
&self.snapshot_topic,
103103
Arc::new(Message::Snapshot(
104-
acropolis_common::messages::SnapshotMessage::Startup(),
104+
acropolis_common::messages::SnapshotMessage::Startup,
105105
)),
106106
)
107107
.await
108-
.map_err(|e| anyhow::anyhow!("Failed to publish start message: {}", e))
108+
.map_err(|e| anyhow::anyhow!("Failed to publish start message: {e}"))
109109
}
110110

111111
async fn publish_completion(
@@ -124,7 +124,7 @@ impl SnapshotHandler {
124124
.message_bus
125125
.publish(&self.snapshot_topic, Arc::new(message))
126126
.await
127-
.map_err(|e| anyhow::anyhow!("Failed to publish completion: {}", e))
127+
.map_err(|e| anyhow::anyhow!("Failed to publish completion: {e}"))
128128
}
129129
}
130130

0 commit comments

Comments
 (0)