Skip to content

Commit

Permalink
Replace or_insert_with(Vec::new) by .or_default();
Browse files Browse the repository at this point in the history
Replace or_insert_with(Vec::new) by .or_default();
  • Loading branch information
racherb committed Oct 22, 2023
1 parent 21c849f commit cecea08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ pub mod calendar {
for date in dates {
let entry = year_month_map
.entry((date.year().try_into().unwrap(), date.month().into()))
.or_insert_with(Vec::new);
.or_default(); //.or_insert_with(Vec::new);
let day = date.day() as Day;
if !entry.contains(&day) {
entry.push(day);
Expand Down

0 comments on commit cecea08

Please sign in to comment.