diff options
author | 2021-05-19 16:26:04 +0700 | |
---|---|---|
committer | 2021-05-19 16:26:04 +0700 | |
commit | 8b7452a55def8620f2c91df40d3882c449f85420 (patch) | |
tree | 09075e3ab1a9e9d039aa3a188e501f48051e52dc | |
parent | 983aa1b3665c6b546700767d21d73de72372ddad (diff) | |
download | iced-8b7452a55def8620f2c91df40d3882c449f85420.tar.gz iced-8b7452a55def8620f2c91df40d3882c449f85420.tar.bz2 iced-8b7452a55def8620f2c91df40d3882c449f85420.zip |
Fix formatting with `cargo fmt`
Diffstat (limited to '')
-rw-r--r-- | futures/src/subscription.rs | 3 | ||||
-rw-r--r-- | native/src/widget/pane_grid.rs | 9 | ||||
-rw-r--r-- | wgpu/src/triangle.rs | 4 |
3 files changed, 6 insertions, 10 deletions
diff --git a/futures/src/subscription.rs b/futures/src/subscription.rs index aa81f844..27d2d295 100644 --- a/futures/src/subscription.rs +++ b/futures/src/subscription.rs @@ -78,8 +78,7 @@ where .drain(..) .map(|recipe| { Box::new(With::new(recipe, value.clone())) - as - Box<dyn Recipe<H, E, Output = (T, O)>> + as Box<dyn Recipe<H, E, Output = (T, O)>> }) .collect(), } 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 { diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index 67f14e4d..21d0e0ab 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -263,8 +263,7 @@ impl Pipeline { Uniforms, >( ) - as - u64), + as u64), }, }], }); @@ -334,7 +333,6 @@ impl Pipeline { let uniforms = bytemuck::cast_slice(&uniforms); - if let Some(uniforms_size) = wgpu::BufferSize::new(uniforms.len() as u64) { |