From 824e4bc51fc12f6aa9c7eac90ec8477352e3480f Mon Sep 17 00:00:00 2001 From: Robin KAY Date: Tue, 14 Jun 2022 20:25:46 +0100 Subject: [PATCH] Fix clippy lint and bad formatting. --- src/lib.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 55929ac..ae79baa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -181,7 +181,11 @@ impl EntityRenderCommand for SetViewSizeBindGroup { pass: &mut TrackedRenderPass<'w>, ) -> RenderCommandResult { let uniform_offset = offset_query.get_inner(view).unwrap(); - pass.set_bind_group(I, &gpu_view_size.into_inner().bind_group, &[uniform_offset.offset]); + pass.set_bind_group( + I, + &gpu_view_size.into_inner().bind_group, + &[uniform_offset.offset], + ); RenderCommandResult::Success } @@ -251,9 +255,7 @@ fn prepare_view_size_uniforms( label: Some("outline_view_size_bind_group"), layout: &outline_pipeline.view_size_bind_group_layout, }); - commands.insert_resource(GpuViewSize { - bind_group: bind_group.clone(), - }); + commands.insert_resource(GpuViewSize { bind_group }); } }