Skip to content

Commit

Permalink
fix drop warning
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed Jun 6, 2024
1 parent 3e6729a commit 83bc7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zemu/src/ui_toolkit/backends/nanox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl UIBackend<KEY_SIZE> 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)
Expand Down

0 comments on commit 83bc7ce

Please sign in to comment.