From 1bc63801e79273bd976530af498a43f0b9c7c93b Mon Sep 17 00:00:00 2001 From: Ekta Siwach <137225906+ektuu@users.noreply.github.com> Date: Thu, 28 Mar 2024 14:36:02 +0530 Subject: fix redundant closures in component/script/dom (#31917) * fixed unnecessary conversions * resolved conflicts * resolved conflicts * fix redundant closures in component/script/dom * resolved conflicts * fixed formatting --- components/script/dom/gpudevice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/gpudevice.rs') diff --git a/components/script/dom/gpudevice.rs b/components/script/dom/gpudevice.rs index 06de48c166d..bc47b1bdfda 100644 --- a/components/script/dom/gpudevice.rs +++ b/components/script/dom/gpudevice.rs @@ -866,7 +866,7 @@ impl GPUDeviceMethods for GPUDevice { mipmap_filter: convert_filter_mode(descriptor.mipmapFilter), lod_min_clamp: *descriptor.lodMinClamp, lod_max_clamp: *descriptor.lodMaxClamp, - compare: descriptor.compare.map(|c| convert_compare_function(c)), + compare: descriptor.compare.map(convert_compare_function), anisotropy_clamp: 1, border_color: None, }; -- cgit v1.2.3