Skip to content

Commit cc0c3ba

Browse files
committed
Two minor clippy fixes
1 parent 8c1f45e commit cc0c3ba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

kani-compiler/src/codegen_cprover_gotoc/archive.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ impl<'a> ArchiveBuilder<'a> {
5959
let entries = self.entries.iter().map(|(entry_name, file)| {
6060
let data = std::fs::read(file).unwrap_or_else(|err| {
6161
sess.fatal(&format!(
62-
"error while reading object file during archive building: {}",
63-
err
62+
"error while reading object file during archive building: {err}"
6463
));
6564
});
6665
(entry_name, data)

kani-compiler/src/codegen_cprover_gotoc/codegen/statement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ impl<'tcx> GotocCtx<'tcx> {
376376
let first_target = targets.iter().next().unwrap();
377377
Stmt::block(
378378
vec![
379-
v.eq(Expr::int_constant(first_target.0, switch_ty.clone())).if_then_else(
379+
v.eq(Expr::int_constant(first_target.0, switch_ty)).if_then_else(
380380
Stmt::goto(self.current_fn().find_label(&first_target.1), loc),
381381
None,
382382
loc,

0 commit comments

Comments
 (0)