config: move input match schema into schema crate
This commit is contained in:
parent
fb65585bfa
commit
81a1a865a1
4 changed files with 33 additions and 21 deletions
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue