mirror of
https://github.com/Dasharo/ecflash.git
synced 2026-03-06 15:02:38 -08:00
Use asm from core::arch
asm was stabilized in Rust 1.59.0. It is now in `core::arch` and not in the prelude. Fixes compiling using the 2022-03-18 toolchain. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Jeremy Soller
parent
ba7f32e1fe
commit
b78471989a
@@ -1,3 +1,5 @@
|
||||
use core::arch::asm;
|
||||
|
||||
#[inline(always)]
|
||||
pub unsafe fn inb(port: u16) -> u8 {
|
||||
let value: u8;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#![no_std]
|
||||
#![feature(asm)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate alloc;
|
||||
|
||||
Reference in New Issue
Block a user