Skip to content

Commit 49c917d

Browse files
committed
Use or_default() in test
1 parent 4ef79e5 commit 49c917d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/r299.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn add_successor(
1717
to: &Point,
1818
cost: usize,
1919
) {
20-
let entry = n.entry(from.clone()).or_insert_with(Vec::new);
20+
let entry = n.entry(from.clone()).or_default();
2121
entry.push((to.clone(), cost));
2222
}
2323

0 commit comments

Comments
 (0)