浏览代码

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>,