Skip to content

Commit

Permalink
Amjad50/OS: updated InvalidErrorCode to remove the code
Browse files Browse the repository at this point in the history
This results in lesser size of the enum value from 16 to 8
  • Loading branch information
Amjad50 committed Jan 19, 2024
1 parent f42c2e4 commit f8c81d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/amjad_os/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fn syscall_to_io_error(e: SyscallError) -> crate::io::Error {
crate::io::Error::new(crate::io::ErrorKind::InvalidInput, error_str)
}
// should never happen
SyscallError::SyscallNotFound | SyscallError::InvalidErrorCode(_) => unreachable!(),
SyscallError::SyscallNotFound | SyscallError::InvalidError => unreachable!(),
// not applicable
SyscallError::CouldNotLoadElf
| SyscallError::CouldNotAllocateProcess
Expand Down

0 comments on commit f8c81d4

Please sign in to comment.