ソースを参照

Mark LogArray as a crate-private type.

Jing Yang 2 年 前
コミット
f2fc71134d
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/log_array.rs

+ 1 - 1
src/log_array.rs

@@ -36,7 +36,7 @@ enum LogEntryEnum<Command> {
 }
 
 #[derive(Clone, Debug, Serialize, Deserialize)]
-pub struct LogEntry<Command> {
+pub(crate) struct LogEntry<Command> {
     pub index: Index,
     pub term: Term,
     command: LogEntryEnum<Command>,