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

Remove dead_code label that is no longer necessary.

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

+ 0 - 2
src/log_array.rs

@@ -155,7 +155,6 @@ impl<C> LogArray<C> {
 impl<C: Default> LogArray<C> {
     /// Shift the start of the array to `index`, and store a new snapshot that
     /// covers all commands before and at `index`.
-    #[allow(dead_code)]
     pub fn shift(&mut self, index: Index, snapshot: Vec<u8>) {
         // Discard everything before index and store the snapshot.
         let offset = self.check_middle_index(index);
@@ -179,7 +178,6 @@ impl<C: Default> LogArray<C> {
 
     /// Reset the array to contain only one snapshot at the given `index` with
     /// the given `term`.
-    #[allow(dead_code)]
     pub fn reset(
         &mut self,
         index: Index,