mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
clippy: Fix a bunch of warnings in script
(#32680)
This is just a portion of the errors that are remaining to be fixed.
This commit is contained in:
parent
93fdb8263d
commit
26624a109f
27 changed files with 150 additions and 113 deletions
|
@ -216,7 +216,7 @@ impl GPUDevice {
|
|||
|
||||
/// <https://gpuweb.github.io/gpuweb/#lose-the-device>
|
||||
pub fn lose(&self, reason: GPUDeviceLostReason, msg: String) {
|
||||
let ref lost_promise = *self.lost_promise.borrow();
|
||||
let lost_promise = &(*self.lost_promise.borrow());
|
||||
let global = &self.global();
|
||||
let lost = GPUDeviceLostInfo::new(global, msg.into(), reason);
|
||||
lost_promise.resolve_native(&*lost);
|
||||
|
@ -964,7 +964,7 @@ impl GPUDeviceMethods for GPUDevice {
|
|||
.0
|
||||
.send(WebGPURequest::PushErrorScope {
|
||||
device_id: self.device.0,
|
||||
filter: filter.to_webgpu(),
|
||||
filter: filter.as_webgpu(),
|
||||
})
|
||||
.is_err()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue