We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4892620 commit ff24a41Copy full SHA for ff24a41
2 files changed
src/commands/fs.rs
@@ -14,6 +14,7 @@ pub static DIR_ITEM: menu::Item<Ctx> = menu::Item {
14
help: Some("Dir the root directory on block device 0"),
15
};
16
17
+#[cfg(target_os = "none")]
18
pub static LOAD_ITEM: menu::Item<Ctx> = menu::Item {
19
item_type: menu::ItemType::Callback {
20
function: load,
src/commands/ram.rs
@@ -87,8 +87,10 @@ pub struct Api {
87
pub print: extern "C" fn(data: *const u8, len: usize),
88
}
89
90
+#[allow(unused)]
91
static CALLBACK_TABLE: Api = Api { print: print_fn };
92
93
94
extern "C" fn print_fn(data: *const u8, len: usize) {
95
let slice = unsafe { core::slice::from_raw_parts(data, len) };
96
if let Ok(s) = core::str::from_utf8(slice) {
0 commit comments