Skip to content

Commit 9252e65

Browse files
committed
Amjad50/OS: updated user_std to 0.2.0 small change in errors
updated `InvalidErrorCode` to remove the code, which resulted in making it smaller, from 16 to 8 bytes
1 parent 738215d commit 9252e65

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,19 @@ checksum = "56fc6cf8dc8c4158eed8649f9b8b0ea1518eb62b544fe9490d66fa0b349eafe9"
8383

8484
[[package]]
8585
name = "amjad_os_kernel_user_link"
86-
version = "0.1.5"
86+
version = "0.2.0"
8787
source = "registry+https://github.com/rust-lang/crates.io-index"
88-
checksum = "a0c160b99e788822b2668c0dbc33dca5d77f45279c6d3ff61c1693b9442e0b10"
88+
checksum = "e8d1291ea9cf6043bfa74865f170b13a220ae79c0d253d1b9ad57e90be137247"
8989
dependencies = [
9090
"compiler_builtins",
9191
"rustc-std-workspace-core",
9292
]
9393

9494
[[package]]
9595
name = "amjad_os_user_std"
96-
version = "0.1.8"
96+
version = "0.2.0"
9797
source = "registry+https://github.com/rust-lang/crates.io-index"
98-
checksum = "829cdb1b3c937cc08902c1d7c477d2ac628e6cdf83e1979dff18c048e9438663"
98+
checksum = "e0e98406c58607f4f54f9ec8e5ffbf7570daba78c343ac640b27f094d62fe3f7"
9999
dependencies = [
100100
"amjad_os_kernel_user_link",
101101
"compiler_builtins",

library/std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ r-efi-alloc = { version = "1.0.0", features = ['rustc-dep-of-std']}
5959

6060
[target.'cfg(target_os = "amjad_os")'.dependencies]
6161
# This is from `https://github.com/Amjad50/OS`, i.e. it must be run from that context
62-
user_std = { version = "0.1.8", package = "amjad_os_user_std", features = ['rustc-dep-of-std'] }
62+
user_std = { version = "0.2.0", package = "amjad_os_user_std", features = ['rustc-dep-of-std'] }
6363

6464
[features]
6565
backtrace = [

library/std/src/sys/amjad_os/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn syscall_to_io_error(e: SyscallError) -> crate::io::Error {
8181
crate::io::Error::new(crate::io::ErrorKind::InvalidInput, error_str)
8282
}
8383
// should never happen
84-
SyscallError::SyscallNotFound | SyscallError::InvalidErrorCode(_) => unreachable!(),
84+
SyscallError::SyscallNotFound | SyscallError::InvalidError => unreachable!(),
8585
// not applicable
8686
SyscallError::CouldNotLoadElf
8787
| SyscallError::CouldNotAllocateProcess

0 commit comments

Comments
 (0)