1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Some clippy fixes from 1.72.0

This commit is contained in:
Emil Ernerfeldt
2023-08-25 07:44:25 +02:00
parent 627e1b3d50
commit b6f46b000b
5 changed files with 16 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ fn month_data(year: i32, month: u32) -> Vec<Week> {
if start.weekday() == Weekday::Sun {
weeks.push(Week {
number: start.iso_week().week() as u8,
days: week.drain(..).collect(),
days: std::mem::take(&mut week),
});
}
start = start.checked_add_signed(Duration::days(1)).unwrap();