Skip to content

Commit

Permalink
Fix 1 clippy warning and annotate another one
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Mar 4, 2024
1 parent 3e8422d commit ca58557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions kani-compiler/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ static JSON_PANIC_HOOK: LazyLock<Box<dyn Fn(&panic::PanicInfo<'_>) + Sync + Send
fallback_fluent_bundle(rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec(), false);
let mut emitter = JsonEmitter::new(
Box::new(io::BufWriter::new(io::stderr())),
#[allow(clippy::arc_with_non_send_sync)]
Lrc::new(SourceMap::new(FilePathMapping::empty())),
fallback_bundle,
false,
Expand Down
2 changes: 1 addition & 1 deletion kani-driver/src/cbmc_property_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ fn annotate_properties_with_reach_results(
let prop_match_id =
check_marker_pat.captures(description.as_str()).unwrap().get(0).unwrap().as_str();
// Get the status associated to the ID we captured
let reach_status_opt = reach_map.get(&prop_match_id.to_string());
let reach_status_opt = reach_map.get(prop_match_id);
// Update the reachability status of the property
if let Some(reach_status) = reach_status_opt {
prop.reach = Some(*reach_status);
Expand Down

0 comments on commit ca58557

Please sign in to comment.