Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed Dec 23, 2024
1 parent ece0ded commit 4d34027
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions app/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@ pub fn zlog(_msg: &str) {
std::println!("{}", _msg);
}

#[cfg(all(not(test), not(feature = "clippy"), not(feature = "fuzzing")))]
pub fn check_canary() {
unsafe { _check_canary() }
#[cfg(all(not(test), not(feature = "clippy"), not(feature = "fuzzing")))]
unsafe {
_check_canary()
}
}

#[cfg(test)]
pub fn check_canary() {}

extern "C" {
fn zemu_log_stack(s: *const u8);
fn _check_canary();
Expand Down
1 change: 0 additions & 1 deletion app/rust/src/parser/consent_message/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ impl<'a, const PAGES: usize, const LINES: usize> DisplayableItem
#[cfg(test)]
mod tests_msg_display {
use super::*;
use std::string::String;

const SCREEN_WIDTH: usize = 35;
const SMALL_SCREEN_WIDTH: usize = 15;
Expand Down

0 comments on commit 4d34027

Please sign in to comment.