diff options
author | 2023-04-21 21:36:30 +0200 | |
---|---|---|
committer | 2023-04-21 21:36:30 +0200 | |
commit | 3f0c226b74c6d0271e550161b6542e652c1875ca (patch) | |
tree | 5b1503ce57d3362f8f0ab8464549f0b32cc1c7d3 | |
parent | cbb2ba38faadc52b9523918a2fbc2e2a78de9087 (diff) | |
download | iced-3f0c226b74c6d0271e550161b6542e652c1875ca.tar.gz iced-3f0c226b74c6d0271e550161b6542e652c1875ca.tar.bz2 iced-3f0c226b74c6d0271e550161b6542e652c1875ca.zip |
Use point-free notation
-rw-r--r-- | examples/integration_wgpu/src/main.rs | 2 | ||||
-rw-r--r-- | wgpu/src/window/compositor.rs | 2 |
2 files changed, 2 insertions, 2 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"), diff --git a/wgpu/src/window/compositor.rs b/wgpu/src/window/compositor.rs index 8969ad6c..3c51768a 100644 --- a/wgpu/src/window/compositor.rs +++ b/wgpu/src/window/compositor.rs @@ -71,8 +71,8 @@ impl<Theme> Compositor<Theme> { capabilities .formats .iter() - .filter(|format| format.is_srgb()) .copied() + .filter(wgpu::TextureFormat::is_srgb) .next() .or_else(|| { log::warn!("No sRGB format found!"); |