(&self, f: &mut std::fmt::Formatter<'_>)
| 99 | |
| 100 | impl std::fmt::Display for StateBeforeChange { |
| 101 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 102 | match self.parent_sequence { |
| 103 | None => write!( |
| 104 | f, |
| 105 | "First change (seq {}) → state {}", |
| 106 | self.change_sequence, |
| 107 | &self.change_state.to_base32()[..8] |
| 108 | ), |
| 109 | Some(parent_seq) => write!( |
| 110 | f, |
| 111 | "State {} (seq {}) → state {} (seq {})", |
| 112 | &self.parent_state.to_base32()[..8], |
| 113 | parent_seq, |
| 114 | &self.change_state.to_base32()[..8], |
| 115 | self.change_sequence |
| 116 | ), |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | // QUERY FUNCTIONS |
nothing calls this directly
no outgoing calls
no test coverage detected