Skip to content

Commit

Permalink
🚧 Trying to compile linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
AucaCoyan committed Dec 12, 2023
1 parent 7c54210 commit 617361d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion espanso-detect/src/evdev/mod.rs
Expand Up @@ -86,7 +86,7 @@ pub struct EVDEVSource {

#[allow(clippy::new_without_default)]
impl EVDEVSource {
pub fn new(options: SourceCreationOptions) -> EVDEVSource {
pub fn new(options: &SourceCreationOptions) -> EVDEVSource {
let mut modifiers_map = HashMap::new();
modifiers_map.insert("ctrl".to_string(), KEY_CTRL + EVDEV_OFFSET);
modifiers_map.insert("shift".to_string(), KEY_SHIFT + EVDEV_OFFSET);
Expand Down
2 changes: 1 addition & 1 deletion espanso-detect/src/lib.rs
Expand Up @@ -122,7 +122,7 @@ pub fn get_source(options: &SourceCreationOptions) -> Result<Box<dyn Source>> {
Ok(Box::new(evdev::EVDEVSource::new(options)))
} else {
info!("using X11Source");
Ok(Box::new(x11::X11Source::new(&options.hotkeys)))
Ok(Box::new(x11::X11Source::new(options.hotkeys)))
}
}

Expand Down

0 comments on commit 617361d

Please sign in to comment.