chore: manual clippy
This commit is contained in:
parent
0847247c33
commit
5e9ea93819
20 changed files with 253 additions and 291 deletions
|
|
@ -598,7 +598,7 @@ impl Device {
|
|||
// see `removed`
|
||||
(Some(_), None) => true,
|
||||
// if we already know about it, we don't consider it added
|
||||
(None, _) => self.inner.outputs.get(conn).is_none(),
|
||||
(None, _) => !self.inner.outputs.contains_key(conn),
|
||||
})
|
||||
.map(|(conn, crtc)| (*conn, *crtc))
|
||||
.collect::<Vec<_>>();
|
||||
|
|
@ -611,7 +611,7 @@ impl Device {
|
|||
Some(Some(c)) => surfaces.get(conn).is_some_and(|crtc| c != crtc),
|
||||
// if don't have a crtc, we need to drop the surface if it exists.
|
||||
// so it needs to be in both `removed` AND `added`.
|
||||
Some(None) => surfaces.get(conn).is_some(),
|
||||
Some(None) => surfaces.contains_key(conn),
|
||||
_ => true,
|
||||
})
|
||||
.map(|(conn, _)| *conn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue