1
0
Fork 0
forked from wry/wry

all: use let chains

This commit is contained in:
Julian Orth 2025-07-01 11:20:48 +02:00
parent 3d5d146d65
commit 286857971a
89 changed files with 1516 additions and 1574 deletions

View file

@ -216,10 +216,10 @@ impl JayRandr {
fn get_device(&self, name: &str) -> Option<Rc<DrmDevData>> {
let mut candidates = vec![];
for dev in self.client.state.drm_devs.lock().values() {
if let Some(node) = &dev.devnode {
if node.ends_with(name) {
candidates.push(dev.clone());
}
if let Some(node) = &dev.devnode
&& node.ends_with(name)
{
candidates.push(dev.clone());
}
}
if candidates.len() == 1 {