Fix type inference for non-windows target

This commit is contained in:
Reazul Ashraf committed 2026-10-08 13:43:43 +01:00
1 parent 8c6bf05269
commit 548f0a06ea
1 file changed
+2 -2
+2 -2
View File
@@ -428,14 +428,14 @@ pub async fn process_clipboard_snapshot(state: Arc<MemoryState>) {
// Deterministic OCR // Deterministic OCR
let img_clone = img.clone(); let img_clone = img.clone();
let ocr_text_opt = tokio::task::spawn_blocking(move || { let ocr_text_opt: Option<String> = tokio::task::spawn_blocking(move || {
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
{ {
perform_windows_ocr(&img_clone) perform_windows_ocr(&img_clone)
} }
#[cfg(not(target_os = "windows"))] #[cfg(not(target_os = "windows"))]
{ {
None None::<String>
} }
}) })
.await .await