From 83bc7ce64956e58c34374ad278a4090b76a6a099 Mon Sep 17 00:00:00 2001 From: neithanmo Date: Thu, 6 Jun 2024 13:45:42 -0600 Subject: [PATCH] fix drop warning --- zemu/src/ui_toolkit/backends/nanox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zemu/src/ui_toolkit/backends/nanox.rs b/zemu/src/ui_toolkit/backends/nanox.rs index a137c30..32ff273 100644 --- a/zemu/src/ui_toolkit/backends/nanox.rs +++ b/zemu/src/ui_toolkit/backends/nanox.rs @@ -140,7 +140,7 @@ impl UIBackend for NanoXBackend { &mut self.key } - fn message_buf(&mut self) -> Self::MessageBuf { + fn message_buf(self) -> Self::MessageBuf { core::mem::drop(self); core::str::from_utf8_mut(&mut Self::static_mut().message)