diff --git a/src/main.rs b/src/main.rs index bad5061..12c2035 100644 --- a/src/main.rs +++ b/src/main.rs @@ -260,15 +260,15 @@ fn open_debug_lap( ) { if let Some(screenshot) = &lap.screenshot { let ocr_results = ocr::ocr_all_regions( - &screenshot, + screenshot, config.clone(), - learned.clone(), - ocr_cache.clone(), + learned, + ocr_cache, ); let debug_lap = DebugLap { screenshot: RetainedImage::from_image_bytes("debug-lap", &to_png_bytes(screenshot)) .unwrap(), - debug_regions: save_frames_from(&screenshot, &*config, &ocr_results), + debug_regions: save_frames_from(screenshot, &*config, &ocr_results), }; ui_state.debug_lap = Some(debug_lap);