1
0
Fork 0
forked from wry/wry

config: move input match schema into schema crate

This commit is contained in:
kossLAN 2026-05-29 17:05:46 -04:00
parent fb65585bfa
commit 81a1a865a1
No known key found for this signature in database
4 changed files with 33 additions and 21 deletions

View file

@ -637,7 +637,18 @@ impl DrmDeviceMatchExt for DrmDeviceMatch {
}
}
impl InputMatch {
trait InputMatchExt {
fn matches(&self, d: InputDevice, state: &State) -> bool;
fn matches_<'a>(
&'a self,
d: InputDevice,
state: &'a State,
active: &mut AHashSet<&'a str>,
) -> bool;
}
impl InputMatchExt for InputMatch {
fn matches(&self, d: InputDevice, state: &State) -> bool {
self.matches_(d, state, &mut AHashSet::new())
}