aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpudevice.rs
diff options
context:
space:
mode:
authorEkta Siwach <137225906+ektuu@users.noreply.github.com>2024-03-28 14:36:02 +0530
committerGitHub <noreply@github.com>2024-03-28 09:06:02 +0000
commit1bc63801e79273bd976530af498a43f0b9c7c93b (patch)
tree18e1a549672397b72e1fec7d462ded5cc3bbf418 /components/script/dom/gpudevice.rs
parentf18317078601afad18188f1bad0a33e59ba8303c (diff)
downloadservo-1bc63801e79273bd976530af498a43f0b9c7c93b.tar.gz
servo-1bc63801e79273bd976530af498a43f0b9c7c93b.zip
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
Diffstat (limited to 'components/script/dom/gpudevice.rs')
-rw-r--r--components/script/dom/gpudevice.rs2
1 files changed, 1 insertions, 1 deletions
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,
};