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/text.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wgpu/src/text.rs') diff --git a/wgpu/src/text.rs b/wgpu/src/text.rs index c5670102..f4521e72 100644 --- a/wgpu/src/text.rs +++ b/wgpu/src/text.rs @@ -23,7 +23,7 @@ pub struct Pipeline { impl Pipeline { pub fn new( - device: &mut wgpu::Device, + device: &wgpu::Device, format: wgpu::TextureFormat, default_font: Option<&[u8]>, ) -> Self { @@ -78,7 +78,7 @@ impl Pipeline { pub fn draw_queued( &mut self, - device: &mut wgpu::Device, + device: &wgpu::Device, encoder: &mut wgpu::CommandEncoder, target: &wgpu::TextureView, transformation: Transformation, -- cgit