mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix needless borrow warnings (#31813)
This commit is contained in:
parent
694e86ecff
commit
3e63f8d6ee
42 changed files with 151 additions and 157 deletions
|
@ -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(),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue