Skip to content

Commit d5a4ce0

Browse files
committed
Chore: fix latest clippy issues
1 parent c133cb7 commit d5a4ce0

File tree

4 files changed

+12
-4
lines changed
  • examples
    • raft-kv-memstore-generic-snapshot-data/src
    • raft-kv-memstore-opendal-snapshot-data/src
    • raft-kv-memstore-singlethreaded/src
    • raft-kv-memstore/src/store

4 files changed

+12
-4
lines changed

examples/raft-kv-memstore-generic-snapshot-data/src/store.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ pub struct StoredSnapshot {
5050
pub data: Box<typ::SnapshotData>,
5151
}
5252

53-
/// Data contained in the Raft state machine. Note that we are using `serde` to serialize the
53+
/// Data contained in the Raft state machine.
54+
///
55+
/// Note that we are using `serde` to serialize the
5456
/// `data`, which has a implementation to be serialized. Note that for this test we set both the key
5557
/// and value as String, but you could set any type of value that has the serialization impl.
5658
#[derive(Serialize, Deserialize, Debug, Default, Clone)]

examples/raft-kv-memstore-opendal-snapshot-data/src/store.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ pub struct StoredSnapshot {
5353
pub data: Box<typ::SnapshotData>,
5454
}
5555

56-
/// Data contained in the Raft state machine. Note that we are using `serde` to serialize the
56+
/// Data contained in the Raft state machine.
57+
///
58+
/// Note that we are using `serde` to serialize the
5759
/// `data`, which has a implementation to be serialized. Note that for this test we set both the key
5860
/// and value as String, but you could set any type of value that has the serialization impl.
5961
#[derive(Serialize, Deserialize, Debug, Default, Clone)]

examples/raft-kv-memstore-singlethreaded/src/store.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ pub struct StoredSnapshot {
8080
pub data: Vec<u8>,
8181
}
8282

83-
/// Data contained in the Raft state machine. Note that we are using `serde` to serialize the
83+
/// Data contained in the Raft state machine.
84+
///
85+
/// Note that we are using `serde` to serialize the
8486
/// `data`, which has a implementation to be serialized. Note that for this test we set both the key
8587
/// and value as String, but you could set any type of value that has the serialization impl.
8688
#[derive(Serialize, Deserialize, Debug, Default, Clone)]

examples/raft-kv-memstore/src/store/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ pub struct StoredSnapshot {
5858
pub data: Vec<u8>,
5959
}
6060

61-
/// Data contained in the Raft state machine. Note that we are using `serde` to serialize the
61+
/// Data contained in the Raft state machine.
62+
///
63+
/// Note that we are using `serde` to serialize the
6264
/// `data`, which has a implementation to be serialized. Note that for this test we set both the key
6365
/// and value as String, but you could set any type of value that has the serialization impl.
6466
#[derive(Serialize, Deserialize, Debug, Default, Clone)]

0 commit comments

Comments
 (0)