Fix type inference for non-windows target
This commit is contained in:
1 parent
8c6bf05269
commit
548f0a06ea
1 file changed
+2
-2
@@ -428,14 +428,14 @@ pub async fn process_clipboard_snapshot(state: Arc<MemoryState>) {
|
||||
|
||||
// Deterministic OCR
|
||||
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")]
|
||||
{
|
||||
perform_windows_ocr(&img_clone)
|
||||
}
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
{
|
||||
None
|
||||
None::<String>
|
||||
}
|
||||
})
|
||||
.await
|
||||
|
||||
Reference in new issue
Block a user