From 250f1cd0a5a73db1cdd0f0858e54883fec5011a2 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 4 Aug 2021 19:38:05 +0200 Subject: [PATCH] util: fix unused return warning --- embassy/src/util/mpsc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy/src/util/mpsc.rs b/embassy/src/util/mpsc.rs index 4a934eb2..bad1058a 100644 --- a/embassy/src/util/mpsc.rs +++ b/embassy/src/util/mpsc.rs @@ -325,7 +325,7 @@ where Ok(..) => Poll::Ready(Ok(())), Err(TrySendError::Closed(m)) => Poll::Ready(Err(SendError(m))), Err(TrySendError::Full(m)) => { - self.message.insert(m); + self.message = Some(m); Poll::Pending } },