mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-07 13:31:29 +03:00
fix remaining clippy lints
This commit is contained in:
@@ -10,7 +10,10 @@ use crate::{
|
||||
|
||||
pub async fn create() -> Box<dyn EventProducer> {
|
||||
#[cfg(target_os = "macos")]
|
||||
return Box::new(producer::macos::MacOSProducer::new());
|
||||
match producer::macos::MacOSProducer::new() {
|
||||
Ok(p) => return Box::new(p),
|
||||
Err(e) => log::info!("macos event producer not available: {e}"),
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
match producer::windows::WindowsProducer::new() {
|
||||
|
||||
Reference in New Issue
Block a user