(&self, tag: &str)
| 339 | } |
| 340 | |
| 341 | fn get_checkpoint(&self, tag: &str) -> Result<&Checkpoint> { |
| 342 | self.tag_index |
| 343 | .get(tag) |
| 344 | .and_then(|&idx| self.checkpoints.get(idx)) |
| 345 | .ok_or_else(|| eyre!("Checkpoint '{}' not found", tag)) |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | impl Drop for CheckpointManager { |