Skip to content

Commit

Permalink
appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
zgrannan committed Dec 6, 2023
1 parent f95a192 commit 3916dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prusti-viper/src/encoder/snapshot/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,7 @@ impl SnapshotEncoder {
.map(|f| {
let field_access_func = field_access_funcs
.get(&f.name)
.expect(&format!("No accessor for field {}", f.name));
.unwrap_or_else(|| panic!("No accessor for field {}", f.name));
field_access_func.apply(vec![self_expr.clone()])
})
.collect();
Expand Down

0 comments on commit 3916dd3

Please sign in to comment.