File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
zemu/src/ui_toolkit/backends Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,11 @@ impl UIBackend<KEY_SIZE> for NanoSPBackend {
141
141
}
142
142
143
143
fn message_buf ( & mut self ) -> Self :: MessageBuf {
144
- core:: mem:: drop ( self ) ;
144
+ // core::mem::drop(self);
145
+ // We do not know what is self, but the compiler
146
+ // does, so let it know we are done with self
147
+ // at this point
148
+ _ = self ;
145
149
146
150
core:: str:: from_utf8_mut ( & mut Self :: static_mut ( ) . message )
147
151
//this should never happen as we always asciify
Original file line number Diff line number Diff line change @@ -141,7 +141,10 @@ impl UIBackend<KEY_SIZE> for NanoXBackend {
141
141
}
142
142
143
143
fn message_buf ( & mut self ) -> Self :: MessageBuf {
144
- core:: mem:: drop ( self ) ;
144
+ // We do not know what is self, but the compiler
145
+ // does, so let it know we are done with self
146
+ // at this point
147
+ _ = self ;
145
148
146
149
core:: str:: from_utf8_mut ( & mut Self :: static_mut ( ) . message )
147
150
//this should never happen as we always asciify
You can’t perform that action at this time.
0 commit comments