(&self, f: &mut std::fmt::Formatter<'_>)
| 157 | |
| 158 | impl std::fmt::Debug for ChangeStore { |
| 159 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 160 | let cache_capacity = self.cache.read().map(|c| c.capacity).unwrap_or(0); |
| 161 | f.debug_struct("ChangeStore") |
| 162 | .field("changes_dir", &self.changes_dir) |
| 163 | .field("cache_capacity", &cache_capacity) |
| 164 | .finish() |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | fn copy_content_from_change( |