Skip to content

Commit ee0aea5

Browse files
committed
zkvm: fix references to os_str module
The `os_str` module has been moved to `sys`.
1 parent 84e729a commit ee0aea5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎library/std/src/sys/pal/zkvm/args.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
usesuper::{abi,WORD_SIZE};
22
usecrate::ffi::OsString;
33
usecrate::fmt;
4+
usecrate::sys::os_str;
45
usecrate::sys_common::FromInner;
56

67
pubstructArgs{
@@ -33,7 +34,7 @@ impl Args {
3334
// "os_str".
3435
let arg_bytes:&[u8] =
3536
unsafe{crate::slice::from_raw_parts(words.cast()as*constu8, arg_len)};
36-
OsString::from_inner(super::os_str::Buf{inner: arg_bytes.to_vec()})
37+
OsString::from_inner(os_str::Buf{inner: arg_bytes.to_vec()})
3738
}
3839
}
3940

‎library/std/src/sys/pal/zkvm/os.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use crate::fmt;
55
usecrate::io;
66
usecrate::marker::PhantomData;
77
usecrate::path::{self,PathBuf};
8+
usecrate::sys::os_str;
89
usecrate::sys_common::FromInner;
910

1011
pubfnerrno() -> i32{
@@ -111,7 +112,7 @@ pub fn getenv(varname: &OsStr) -> Option<OsString> {
111112
// reimplement "os_str" instead of just using the generic unix
112113
// "os_str".
113114
let u8s:&[u8] = unsafe{crate::slice::from_raw_parts(words.cast()as*constu8, nbytes)};
114-
Some(OsString::from_inner(super::os_str::Buf{inner: u8s.to_vec()}))
115+
Some(OsString::from_inner(os_str::Buf{inner: u8s.to_vec()}))
115116
}
116117

117118
pubfnsetenv(_:&OsStr, _:&OsStr) -> io::Result<()>{

0 commit comments

Comments
 (0)