diff options
author | 2021-05-19 16:26:04 +0700 | |
---|---|---|
committer | 2021-05-19 16:26:04 +0700 | |
commit | 8b7452a55def8620f2c91df40d3882c449f85420 (patch) | |
tree | 09075e3ab1a9e9d039aa3a188e501f48051e52dc /native | |
parent | 983aa1b3665c6b546700767d21d73de72372ddad (diff) | |
download | iced-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.rs | 9 |
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 { |