Fix needless borrows in image::Pipeline

This commit is contained in:
Héctor Ramón Jiménez 2023-02-07 22:53:41 +01:00
parent 363966ee9e
commit 23ed352e83
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -71,7 +71,7 @@ impl Layer {
let constants = device.create_bind_group(&wgpu::BindGroupDescriptor {
label: Some("iced_wgpu::image constants bind group"),
layout: &constant_layout,
layout: constant_layout,
entries: &[
wgpu::BindGroupEntry {
binding: 0,
@ -85,7 +85,7 @@ impl Layer {
},
wgpu::BindGroupEntry {
binding: 1,
resource: wgpu::BindingResource::Sampler(&sampler),
resource: wgpu::BindingResource::Sampler(sampler),
},
],
});