Use point-free notation

This commit is contained in:
Héctor Ramón Jiménez 2023-04-21 21:36:30 +02:00
parent cbb2ba38fa
commit 3f0c226b74
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 2 additions and 2 deletions

View file

@ -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"),

View file

@ -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!");