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()