diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-19 17:42:57 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-19 17:42:57 +0100 |
commit | a042d9d29eb5e6706d29d58f71c9d25ed96dbe09 (patch) | |
tree | 9afdb99f34f70d51256815acf204b661607a5253 /src/imap | |
parent | f5f3aba8d1fb19fe11432e077817779b528363b7 (diff) | |
download | aerogramme-a042d9d29eb5e6706d29d58f71c9d25ed96dbe09.tar.gz aerogramme-a042d9d29eb5e6706d29d58f71c9d25ed96dbe09.zip |
fix warningsuidplus
Diffstat (limited to 'src/imap')
-rw-r--r-- | src/imap/mod.rs | 8 |
1 files 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<Self> { + async fn new(ctx: ClientContext, sock: AnyStream) -> Result<Self> { // 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::<Request>(3); - let (resp_tx, mut resp_rx) = mpsc::unbounded_channel::<ResponseOrIdle>(); + let (cmd_tx, cmd_rx) = mpsc::channel::<Request>(3); + let (resp_tx, resp_rx) = mpsc::unbounded_channel::<ResponseOrIdle>(); tokio::spawn(Self::session(ctx.clone(), cmd_rx, resp_tx)); // Return the object |