Skip to content

Commit

Permalink
Merge #441
Browse files Browse the repository at this point in the history
441: Use or_default() in test r=samueltardieu a=samueltardieu



Co-authored-by: Samuel Tardieu <[email protected]>
  • Loading branch information
bors[bot] and samueltardieu authored Sep 22, 2023
2 parents 4ef79e5 + 49c917d commit f07d800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/r299.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn add_successor(
to: &Point,
cost: usize,
) {
let entry = n.entry(from.clone()).or_insert_with(Vec::new);
let entry = n.entry(from.clone()).or_default();
entry.push((to.clone(), cost));
}

Expand Down

0 comments on commit f07d800

Please sign in to comment.