Fix clippy lints
This commit is contained in:
parent
3dd5a28e28
commit
7997d58ce7
7 changed files with 11 additions and 25 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue