Explorar o código

Mark LogArray as a crate-private type.

Jing Yang %!s(int64=2) %!d(string=hai) anos
pai
achega
f2fc71134d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>,