Fix formatting with cargo fmt
This commit is contained in:
parent
983aa1b366
commit
8b7452a55d
@ -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(),
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user