Fix formatting with cargo fmt

This commit is contained in:
Héctor Ramón 2021-05-19 16:26:04 +07:00
parent 983aa1b366
commit 8b7452a55d
3 changed files with 6 additions and 10 deletions

View file

@ -209,11 +209,10 @@ where
cursor_position: Point,
messages: &mut Vec<Message>,
) {
let mut clicked_region = self
.elements
.iter()
.zip(layout.children())
.filter(|(_, layout)| layout.bounds().contains(cursor_position));
let mut clicked_region =
self.elements.iter().zip(layout.children()).filter(
|(_, layout)| layout.bounds().contains(cursor_position),
);
if let Some(((pane, content), layout)) = clicked_region.next() {
if let Some(on_click) = &self.on_click {