Fix/suppress new Clippy warnings introduced in Rust 1.82

This commit is contained in:
Keavon Chambers
2024-10-25 10:31:42 -07:00
parent c3a3c4c907
commit a395fbf063
3 changed files with 4 additions and 4 deletions

View File

@@ -810,9 +810,8 @@ impl Adjust<Color> for Color {
}
impl Adjust<Color> for Option<Color> {
fn adjust(&mut self, map_fn: impl Fn(&Color) -> Color) {
match self {
Some(ref mut v) => *v = map_fn(v),
None => (),
if let Some(ref mut v) = self {
*v = map_fn(v)
}
}
}