Fix clippy lints

This commit is contained in:
Ian Douglas Scott 2024-04-24 13:51:20 -07:00
parent 3dd5a28e28
commit 7997d58ce7
7 changed files with 11 additions and 25 deletions

View file

@ -99,7 +99,7 @@ impl AppData {
x.format == format
&& (!needs_linear || x.modifier == u64::from(gbm::Modifier::Linear))
})
.filter_map(|x| gbm::Modifier::try_from(x.modifier).ok())
.map(|x| gbm::Modifier::from(x.modifier))
.collect::<Vec<_>>();
if modifiers.is_empty() {