mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 15:08:11 +08:00
Fix assorted Clippy lints (#3390)
This commit is contained in:
@@ -213,10 +213,10 @@ pub fn overlay_options(grid: &GridSnapping) -> Vec<LayoutGroup> {
|
||||
}
|
||||
let update_origin = |grid, update: fn(&mut GridSnapping) -> Option<&mut f64>| {
|
||||
update_val::<NumberInput, _>(grid, move |grid, val| {
|
||||
if let Some(val) = val.value {
|
||||
if let Some(update) = update(grid) {
|
||||
*update = val;
|
||||
}
|
||||
if let Some(val) = val.value
|
||||
&& let Some(update) = update(grid)
|
||||
{
|
||||
*update = val;
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user