Skip to content

Commit

Permalink
3/3: Code warning cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuris committed Aug 3, 2023
1 parent 5404ca9 commit 2d3d5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firewood/examples/rev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl RevisionTracker {
fn get_revision(&self, index: usize) -> Revision<SharedStore> {
self.db
.get_revision(&self.hashes[index], None)
.expect(&format!("revision-{index} should exist"))
.unwrap_or_else(|| panic!("revision-{index} should exist"))
}
}

Expand Down

0 comments on commit 2d3d5e2

Please sign in to comment.