fix remaining clippy lints

This commit is contained in:
Ferdinand Schober
2023-12-18 21:38:12 +01:00
parent 4600db7af8
commit 66de3e3cbc
4 changed files with 10 additions and 6 deletions

View File

@@ -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() {