From a042d9d29eb5e6706d29d58f71c9d25ed96dbe09 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 19 Jan 2024 17:42:57 +0100 Subject: fix warnings --- src/imap/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/imap/mod.rs b/src/imap/mod.rs index 40c4d4f..3f685e6 100644 --- a/src/imap/mod.rs +++ b/src/imap/mod.rs @@ -140,9 +140,9 @@ impl NetLoop { } } - async fn new(mut ctx: ClientContext, sock: AnyStream) -> Result { + async fn new(ctx: ClientContext, sock: AnyStream) -> Result { // Send greeting - let (mut server, _) = ServerFlow::send_greeting( + let (server, _) = ServerFlow::send_greeting( sock, ServerFlowOptions { crlf_relaxed: false, @@ -159,8 +159,8 @@ impl NetLoop { .await?; // Start a mailbox session in background - let (cmd_tx, mut cmd_rx) = mpsc::channel::(3); - let (resp_tx, mut resp_rx) = mpsc::unbounded_channel::(); + let (cmd_tx, cmd_rx) = mpsc::channel::(3); + let (resp_tx, resp_rx) = mpsc::unbounded_channel::(); tokio::spawn(Self::session(ctx.clone(), cmd_rx, resp_tx)); // Return the object -- cgit v1.2.3