Rename Option::get_or_insert_default
This commit is contained in:
parent
a4d9624242
commit
b0514a6a0a
3 changed files with 31 additions and 30 deletions
|
@ -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: \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue