From 70ad97586646335df8cfd09d10a8c2efbf02e37e Mon Sep 17 00:00:00 2001 From: Scott Pruett Date: Mon, 23 May 2022 22:39:24 -0400 Subject: [PATCH] clippy --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);