code: Fix clippy warnings

This commit is contained in:
Sophie Herold 2025-01-13 15:02:01 +01:00
parent 70e18de073
commit 2adefc5241
5 changed files with 10 additions and 10 deletions

View file

@ -257,7 +257,7 @@ mod imp {
corner,
initial_selection: crop_area,
}));
} else if hovered_widget.map_or(false, |x| x == *imp.selection) {
} else if hovered_widget.is_some_and(|x| x == *imp.selection) {
gesture.set_state(gtk::EventSequenceState::Claimed);
let crop_area = imp.crop_area();