Skip to content

Commit 210402d

Browse files
committed
Fix macro
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent a895c9d commit 210402d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

hv/examples/as.rs

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ fn main() -> Result<(), hv::Error> {
7272
cpu.set_reg(Reg::X1, GUEST_RESULT_ADDR as _)
7373
.expect("Failed to set X1");
7474

75+
#[allow(clippy::never_loop)]
7576
loop {
7677
cpu.run().expect("Failed to run CPU");
7778

hv/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ bitflags::bitflags! {
3737
#[macro_export]
3838
macro_rules! call {
3939
($f:expr) => {{
40+
#[allow(clippy::macro_metavars_in_unsafe)]
4041
let code = unsafe { $f };
4142
match code {
4243
0 => Ok(()),

0 commit comments

Comments
 (0)