From b23945c78a6e4600cde29b928941297d45cc3d1f Mon Sep 17 00:00:00 2001 From: Lain-dono Date: Thu, 16 Apr 2020 09:06:05 +0300 Subject: Change `&mut wgpu::Device` to `&wgpu::Device` (#299) * Change `&mut wgpu::Device` to `&wgpu::Device` * Fix for rustfmt --- wgpu/src/quad.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'wgpu/src/quad.rs') diff --git a/wgpu/src/quad.rs b/wgpu/src/quad.rs index 261d1d94..0c2d2244 100644 --- a/wgpu/src/quad.rs +++ b/wgpu/src/quad.rs @@ -15,10 +15,7 @@ pub struct Pipeline { } impl Pipeline { - pub fn new( - device: &mut wgpu::Device, - format: wgpu::TextureFormat, - ) -> Pipeline { + pub fn new(device: &wgpu::Device, format: wgpu::TextureFormat) -> Pipeline { let constant_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor { label: None, @@ -180,7 +177,7 @@ impl Pipeline { pub fn draw( &mut self, - device: &mut wgpu::Device, + device: &wgpu::Device, encoder: &mut wgpu::CommandEncoder, instances: &[Quad], transformation: Transformation, -- cgit