Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Pialex99 committed Jan 25, 2023
1 parent 5fdcc88 commit 51798e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prusti-viper/src/encoder/resources/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl<'p, 'v: 'p, 'tcx: 'v> ResourcesEncoderInterface
amount.into(),
scope_id,
),
pos.clone(),
pos,
)
}));
stmts.extend(scope_ids.iter().map(|&scope_id| {
Expand Down
2 changes: 1 addition & 1 deletion vir/src/legacy/ast/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl fmt::Display for Expr {
write!(f, "acc({pred_name}({arg}), {perm})")
}
Expr::ResourceAccessPredicate(resouce_name, amount, scope_id, _) => {
write!(f, "acc({}({}), {}/1)", resouce_name, scope_id, amount)
write!(f, "acc({resouce_name}({scope_id}), {amount}/1)")
}
Expr::FieldAccessPredicate(ref expr, perm, ref _pos) => {
write!(f, "acc({expr}, {perm})")
Expand Down

0 comments on commit 51798e1

Please sign in to comment.