Use point-free notation
This commit is contained in:
parent
cbb2ba38fa
commit
3f0c226b74
2 changed files with 2 additions and 2 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
|
|
@ -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!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue