clippy
This commit is contained in:
parent
25edcfe316
commit
70ad975866
|
@ -260,15 +260,15 @@ fn open_debug_lap(
|
||||||
) {
|
) {
|
||||||
if let Some(screenshot) = &lap.screenshot {
|
if let Some(screenshot) = &lap.screenshot {
|
||||||
let ocr_results = ocr::ocr_all_regions(
|
let ocr_results = ocr::ocr_all_regions(
|
||||||
&screenshot,
|
screenshot,
|
||||||
config.clone(),
|
config.clone(),
|
||||||
learned.clone(),
|
learned,
|
||||||
ocr_cache.clone(),
|
ocr_cache,
|
||||||
);
|
);
|
||||||
let debug_lap = DebugLap {
|
let debug_lap = DebugLap {
|
||||||
screenshot: RetainedImage::from_image_bytes("debug-lap", &to_png_bytes(screenshot))
|
screenshot: RetainedImage::from_image_bytes("debug-lap", &to_png_bytes(screenshot))
|
||||||
.unwrap(),
|
.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);
|
ui_state.debug_lap = Some(debug_lap);
|
||||||
|
|
Loading…
Reference in New Issue