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 58e486a commit 6dc0fbb
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 6dc0fbb

Please sign in to comment.