From b790a0e92ac1906b8f58b80a8f1bb17e476bec68 Mon Sep 17 00:00:00 2001 From: Vadim Kaushan Date: Wed, 19 Dec 2018 00:01:36 +0300 Subject: [PATCH] Replace no-op with unimplemented!() --- src/asm.rs | 2 +- src/interrupt.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/asm.rs b/src/asm.rs index 14ab476..bce1fda 100644 --- a/src/asm.rs +++ b/src/asm.rs @@ -8,7 +8,7 @@ macro_rules! instruction { #[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))] () => asm!($asm :::: "volatile"), #[cfg(not(any(target_arch = "riscv32", target_arch = "riscv64")))] - () => {} + () => unimplemented!(), } } ) diff --git a/src/interrupt.rs b/src/interrupt.rs index 24f210d..06980cb 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -11,7 +11,7 @@ pub unsafe fn disable() { #[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))] () => mstatus::clear_mie(), #[cfg(not(any(target_arch = "riscv32", target_arch = "riscv64")))] - () => {} + () => unimplemented!(), } } @@ -26,7 +26,7 @@ pub unsafe fn enable() { #[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))] () => mstatus::set_mie(), #[cfg(not(any(target_arch = "riscv32", target_arch = "riscv64")))] - () => {} + () => unimplemented!(), } }