File tree 2 files changed +2
-3
lines changed
kani-compiler/src/codegen_cprover_gotoc 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ impl<'a> ArchiveBuilder<'a> {
59
59
let entries = self . entries . iter ( ) . map ( |( entry_name, file) | {
60
60
let data = std:: fs:: read ( file) . unwrap_or_else ( |err| {
61
61
sess. fatal ( & format ! (
62
- "error while reading object file during archive building: {}" ,
63
- err
62
+ "error while reading object file during archive building: {err}"
64
63
) ) ;
65
64
} ) ;
66
65
( entry_name, data)
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ impl<'tcx> GotocCtx<'tcx> {
376
376
let first_target = targets. iter ( ) . next ( ) . unwrap ( ) ;
377
377
Stmt :: block (
378
378
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(
380
380
Stmt :: goto( self . current_fn( ) . find_label( & first_target. 1 ) , loc) ,
381
381
None ,
382
382
loc,
You can’t perform that action at this time.
0 commit comments