diff --git a/kani-compiler/src/codegen_cprover_gotoc/codegen/function.rs b/kani-compiler/src/codegen_cprover_gotoc/codegen/function.rs index 0f2e30bd7a6e..bf64f0dd2e66 100644 --- a/kani-compiler/src/codegen_cprover_gotoc/codegen/function.rs +++ b/kani-compiler/src/codegen_cprover_gotoc/codegen/function.rs @@ -262,8 +262,7 @@ pub mod rustc_smir { let file = source_map.lookup_source_file(cov_info.body_span.lo()); if term == coverage { return Some(( - make_source_region(source_map, cov_info, &file, mapping.span) - .unwrap(), + make_source_region(source_map, cov_info, &file, mapping.span).unwrap(), rustc_internal::stable(cov_info.body_span).get_filename(), )); } diff --git a/tools/compiletest/src/main.rs b/tools/compiletest/src/main.rs index 8a77fd87cf90..c0e599b725cf 100644 --- a/tools/compiletest/src/main.rs +++ b/tools/compiletest/src/main.rs @@ -147,10 +147,9 @@ pub fn parse_config(args: Vec) -> Config { let run_ignored = matches.opt_present("ignored"); let mode = matches.opt_str("mode").unwrap().parse().expect("invalid mode"); let timeout = matches.opt_str("timeout").map(|val| { - Duration::from_secs( - u64::from_str(&val) - .expect(&format!("Unexpected timeout format. Expected a positive number but found {val}")), - ) + Duration::from_secs(u64::from_str(&val).expect(&format!( + "Unexpected timeout format. Expected a positive number but found {val}" + ))) }); Config {