Преглед на файлове

Derive clone, debug and default for snapshot.

Jing Yang преди 4 години
родител
ревизия
afcba31d87
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/snapshot.rs

+ 1 - 0
src/snapshot.rs

@@ -2,6 +2,7 @@ use crate::{Index, Raft};
 use crossbeam_utils::sync::{Parker, Unparker};
 use std::sync::atomic::Ordering;
 
+#[derive(Clone, Debug, Default)]
 pub struct Snapshot {
     pub last_included_index: Index,
     pub data: Vec<u8>,