Skip to content

Commit

Permalink
Fix unread fields intended for the debugger.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbiffle committed Apr 4, 2024
1 parent 701286c commit a5dce07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion task/hiffy/src/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
use hif::Function;
use hubris_num_tasks::Task;

pub struct Buffer(u8);
// This type is only used by the debugger apparently, so its field appears
// unused to the compiler.
pub struct Buffer(#[allow(dead_code)] u8);

pub enum Functions {
Sleep(u16, u32),
Expand Down

0 comments on commit a5dce07

Please sign in to comment.