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
|
capabilities
|
||||||
.formats
|
.formats
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|format| format.is_srgb())
|
|
||||||
.copied()
|
.copied()
|
||||||
|
.filter(wgpu::TextureFormat::is_srgb)
|
||||||
.next()
|
.next()
|
||||||
.or_else(|| capabilities.formats.first().copied())
|
.or_else(|| capabilities.formats.first().copied())
|
||||||
.expect("Get preferred format"),
|
.expect("Get preferred format"),
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,8 @@ impl<Theme> Compositor<Theme> {
|
||||||
capabilities
|
capabilities
|
||||||
.formats
|
.formats
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|format| format.is_srgb())
|
|
||||||
.copied()
|
.copied()
|
||||||
|
.filter(wgpu::TextureFormat::is_srgb)
|
||||||
.next()
|
.next()
|
||||||
.or_else(|| {
|
.or_else(|| {
|
||||||
log::warn!("No sRGB format found!");
|
log::warn!("No sRGB format found!");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue