From 3c05b58221a2b5c879d31d355087a905de6494d8 Mon Sep 17 00:00:00 2001 From: Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> Date: Sat, 23 Mar 2024 12:29:20 +0100 Subject: clippy: Fix `explicit_auto_deref` warnings in `components/script` (#31837) * clippy: Fix explicit auto-deref warnings * clippy: Fix explicit auto-deref warnings * refactor: Tidy up code * refactor: Fix method not found errors --- components/script/dom/gpubuffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/gpubuffer.rs') diff --git a/components/script/dom/gpubuffer.rs b/components/script/dom/gpubuffer.rs index 10ced4a654e..7cdffaa7292 100644 --- a/components/script/dom/gpubuffer.rs +++ b/components/script/dom/gpubuffer.rs @@ -159,7 +159,7 @@ impl GPUBufferMethods for GPUBuffer { WebGPURequest::UnmapBuffer { buffer_id: self.id().0, device_id: self.device.id().0, - array_buffer: IpcSharedMemory::from_bytes(&*m_info.mapping.lock().unwrap()), + array_buffer: IpcSharedMemory::from_bytes(&m_info.mapping.lock().unwrap()), is_map_read: m_info.map_mode == Some(GPUMapModeConstants::READ), offset: m_range.start, size: m_range.end - m_range.start, -- cgit v1.2.3