Skip to content

Commit

Permalink
appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
zgrannan committed Nov 29, 2023
1 parent 93f8c5d commit c0d5298
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 c0d5298

Please sign in to comment.