made compatible with no_std

This commit is contained in:
elfein 2021-11-11 06:41:45 -08:00
parent 7b5b4a2820
commit 8520cc7e73

View file

@ -11,7 +11,7 @@ macro_rules! syscall_enum {
$($Variant=$Value),* $($Variant=$Value),*
} }
impl From<usize> for SysCall { impl core::convert::From<usize> for SysCall {
fn from(n: usize) -> Self { fn from(n: usize) -> Self {
match n { match n {
$($Value => Self::$Variant),*, $($Value => Self::$Variant),*,