Fix clippy suggestion in UIThreadInner::new

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-19 01:31:58 +10:00
parent d0129b3bef
commit 584b61144e
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -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 || {