Rename Option::get_or_insert_default

This commit is contained in:
Cameron Steffen 2021-03-10 08:48:09 -06:00
parent a4d9624242
commit b0514a6a0a
3 changed files with 31 additions and 30 deletions

View file

@ -392,7 +392,8 @@ impl BasicCoverageBlockData {
}
}
let operand = counter_kind.as_operand_id();
if let Some(replaced) = self.edge_from_bcbs.get_or_default().insert(from_bcb, counter_kind)
if let Some(replaced) =
self.edge_from_bcbs.get_or_insert_default().insert(from_bcb, counter_kind)
{
Error::from_string(format!(
"attempt to set an edge counter more than once; from_bcb: \