File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
zemu/src/ui_toolkit/backends Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 34
34
rustup show
35
35
- name : rustfmt
36
36
run : |
37
- cargo fmt --version
37
+ # cargo fmt --version
38
38
cargo fmt -- --check
39
39
- name : clippy
40
40
run : |
41
- cargo clippy --version
41
+ # cargo clippy --version
42
42
cargo clippy --all-targets
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