summaryrefslogtreecommitdiffstats
path: root/examples/integration_wgpu
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-21 21:36:30 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-21 21:36:30 +0200
commit3f0c226b74c6d0271e550161b6542e652c1875ca (patch)
tree5b1503ce57d3362f8f0ab8464549f0b32cc1c7d3 /examples/integration_wgpu
parentcbb2ba38faadc52b9523918a2fbc2e2a78de9087 (diff)
downloadiced-3f0c226b74c6d0271e550161b6542e652c1875ca.tar.gz
iced-3f0c226b74c6d0271e550161b6542e652c1875ca.tar.bz2
iced-3f0c226b74c6d0271e550161b6542e652c1875ca.zip
Use point-free notation
Diffstat (limited to 'examples/integration_wgpu')
-rw-r--r--examples/integration_wgpu/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/integration_wgpu/src/main.rs b/examples/integration_wgpu/src/main.rs
index 7b9f4d4c..f5fe7636 100644
--- a/examples/integration_wgpu/src/main.rs
+++ b/examples/integration_wgpu/src/main.rs
@@ -98,8 +98,8 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
capabilities
.formats
.iter()
- .filter(|format| format.is_srgb())
.copied()
+ .filter(wgpu::TextureFormat::is_srgb)
.next()
.or_else(|| capabilities.formats.first().copied())
.expect("Get preferred format"),