From 584b61144e94e20728c25327464faa6de4898228 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sun, 19 Jun 2022 01:31:58 +1000 Subject: [PATCH] Fix clippy suggestion in `UIThreadInner::new` Signed-off-by: Jiahao XU --- src/helpers/ui_thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/ui_thread.rs b/src/helpers/ui_thread.rs index c371efda..52590502 100644 --- a/src/helpers/ui_thread.rs +++ b/src/helpers/ui_thread.rs @@ -31,7 +31,7 @@ struct UIThreadInner { impl UIThreadInner { fn new() -> Self { // Set it to a large enough number so it will never block. - let (request_tx, mut request_rx) = mpsc_sync::sync_channel(50); + let (request_tx, request_rx) = mpsc_sync::sync_channel(50); let (confirm_tx, confirm_rx) = mpsc::channel(10); spawn_blocking(move || {