summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@lich.io>2021-05-19 16:26:04 +0700
committerLibravatar Héctor Ramón <hector@lich.io>2021-05-19 16:26:04 +0700
commit8b7452a55def8620f2c91df40d3882c449f85420 (patch)
tree09075e3ab1a9e9d039aa3a188e501f48051e52dc /native
parent983aa1b3665c6b546700767d21d73de72372ddad (diff)
downloadiced-8b7452a55def8620f2c91df40d3882c449f85420.tar.gz
iced-8b7452a55def8620f2c91df40d3882c449f85420.tar.bz2
iced-8b7452a55def8620f2c91df40d3882c449f85420.zip
Fix formatting with `cargo fmt`
Diffstat (limited to 'native')
-rw-r--r--native/src/widget/pane_grid.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/native/src/widget/pane_grid.rs b/native/src/widget/pane_grid.rs
index 3df7b156..44028f5e 100644
--- a/native/src/widget/pane_grid.rs
+++ b/native/src/widget/pane_grid.rs
@@ -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 {