chore: clippy

This commit is contained in:
Vukašin Vojinović 2025-10-01 18:48:45 +02:00 committed by Michael Murphy
parent 75256dac19
commit 2d6d507a48
41 changed files with 139 additions and 172 deletions

View file

@ -118,11 +118,7 @@ pub fn color_select_options(
})
.chain(wallpaper::DEFAULT_COLORS.iter().map(|color| (color, false)))
.map(|(color, removable)| {
color_button(
color.clone(),
removable,
selected.map_or(false, |selection| selection == color),
)
color_button(color.clone(), removable, selected == Some(color))
})
.collect::<Vec<_>>(),
)
@ -146,7 +142,7 @@ pub fn wallpaper_select_options(
handle,
*id,
true,
selected.map_or(false, |selection| id == &selection),
selected.is_some_and(|selection| id == &selection),
));
}
}
@ -157,12 +153,7 @@ pub fn wallpaper_select_options(
continue;
}
vec.push(wallpaper_button(
handle,
id,
false,
selected.map_or(false, |selection| id == selection),
));
vec.push(wallpaper_button(handle, id, false, selected == Some(id)));
}
flex_select_row(vec)