Skip to content

Commit ff24a41

Browse files
committed
Fix desktop build
1 parent 4892620 commit ff24a41

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/commands/fs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub static DIR_ITEM: menu::Item<Ctx> = menu::Item {
1414
help: Some("Dir the root directory on block device 0"),
1515
};
1616

17+
#[cfg(target_os = "none")]
1718
pub static LOAD_ITEM: menu::Item<Ctx> = menu::Item {
1819
item_type: menu::ItemType::Callback {
1920
function: load,

src/commands/ram.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ pub struct Api {
8787
pub print: extern "C" fn(data: *const u8, len: usize),
8888
}
8989

90+
#[allow(unused)]
9091
static CALLBACK_TABLE: Api = Api { print: print_fn };
9192

93+
#[allow(unused)]
9294
extern "C" fn print_fn(data: *const u8, len: usize) {
9395
let slice = unsafe { core::slice::from_raw_parts(data, len) };
9496
if let Ok(s) = core::str::from_utf8(slice) {

0 commit comments

Comments
 (0)