clippy: Fix needless borrow warnings (#31813)

This commit is contained in:
Oluwatobi Sofela 2024-03-21 18:48:54 +01:00 committed by GitHub
parent 694e86ecff
commit 3e63f8d6ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 151 additions and 157 deletions

View file

@ -418,7 +418,7 @@ impl GPUDeviceMethods for GPUDevice {
&self.global(),
self.channel.clone(),
buffer,
&self,
self,
state,
descriptor.size,
map_info,
@ -733,7 +733,7 @@ impl GPUDeviceMethods for GPUDevice {
compute_pipeline,
descriptor.parent.parent.label.clone().unwrap_or_default(),
bgls,
&self,
self,
)
}
@ -776,7 +776,7 @@ impl GPUDeviceMethods for GPUDevice {
GPUCommandEncoder::new(
&self.global(),
self.channel.clone(),
&self,
self,
encoder,
descriptor.parent.label.clone().unwrap_or_default(),
)
@ -836,7 +836,7 @@ impl GPUDeviceMethods for GPUDevice {
GPUTexture::new(
&self.global(),
texture,
&self,
self,
self.channel.clone(),
size,
descriptor.mipLevelCount,
@ -1047,7 +1047,7 @@ impl GPUDeviceMethods for GPUDevice {
render_pipeline,
descriptor.parent.parent.label.clone().unwrap_or_default(),
bgls,
&self,
self,
)
}
@ -1095,7 +1095,7 @@ impl GPUDeviceMethods for GPUDevice {
GPURenderBundleEncoder::new(
&self.global(),
render_bundle_encoder,
&self,
self,
self.channel.clone(),
descriptor.parent.parent.label.clone().unwrap_or_default(),
)