Skip to content

Commit f6eee65

Browse files
Fix unused use warning that shows up with some build configs
1 parent c0311ff commit f6eee65

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

uefi-services/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ extern crate log;
2727
// Core types.
2828
extern crate uefi;
2929

30-
use core::arch::asm;
3130
use core::ffi::c_void;
3231
use core::ptr::NonNull;
3332

@@ -187,14 +186,14 @@ fn panic_handler(info: &core::panic::PanicInfo) -> ! {
187186
loop {
188187
unsafe {
189188
// Try to at least keep CPU from running at 100%
190-
asm!("hlt", options(nomem, nostack));
189+
core::arch::asm!("hlt", options(nomem, nostack));
191190
}
192191
}
193192
} else if #[cfg(target_arch = "aarch64")] {
194193
loop {
195194
unsafe {
196195
// Try to at least keep CPU from running at 100%
197-
asm!("hlt 420", options(nomem, nostack));
196+
core::arch::asm!("hlt 420", options(nomem, nostack));
198197
}
199198
}
200199
} else {

0 commit comments

Comments
 (0)