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/triangle.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wgpu/src/triangle.rs') diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index 471abe22..86c74fcd 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -63,7 +63,7 @@ impl Buffer { impl Pipeline { pub fn new( - device: &mut wgpu::Device, + device: &wgpu::Device, format: wgpu::TextureFormat, antialiasing: Option, ) -> Pipeline { @@ -195,7 +195,7 @@ impl Pipeline { pub fn draw( &mut self, - device: &mut wgpu::Device, + device: &wgpu::Device, encoder: &mut wgpu::CommandEncoder, target: &wgpu::TextureView, target_width: u32, -- cgit