From b458140d6ce406966dee522b7f8d5839863f93c0 Mon Sep 17 00:00:00 2001 From: Revertron Date: Mon, 24 May 2021 17:44:35 +0200 Subject: [PATCH] Fixed build. --- src/web_ui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web_ui.rs b/src/web_ui.rs index 59fd535..0e8ea2e 100644 --- a/src/web_ui.rs +++ b/src/web_ui.rs @@ -266,7 +266,7 @@ fn action_loaded(context: &Arc>, web_view: &mut WebView<()>) { status.max_diff = max_diff; } status.set_thread_speed(thread, speed); - if thread == threads - 1 { + if thread as usize == threads - 1 { format!("setLeftStatusBarText('Mining speed {} H/s, max found difficulty {}/{}.'); showMiningIndicator(true, false);", status.get_speed(), status.max_diff, target_diff) } else { String::new()