fix macos, the 2nd

This commit is contained in:
Ferdinand Schober
2024-06-28 23:54:34 +02:00
parent 89c5067e0d
commit ce10eb6c3e

View File

@@ -47,7 +47,7 @@ pub async fn create(
#[cfg(windows)]
CaptureBackend::Windows => Ok(Box::new(windows::WindowsInputCapture::new())),
#[cfg(target_os = "macos")]
CaptureBackend::MacOs => Box::new(macos::MacOSInputCapture::new()?),
CaptureBackend::MacOs => Ok(Box::new(macos::MacOSInputCapture::new()?)),
CaptureBackend::Dummy => Ok(Box::new(dummy::DummyInputCapture::new())),
};
}