mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 07:18:04 +08:00
Fix/suppress new Clippy warnings introduced in Rust 1.82
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user