fix
This commit is contained in:
parent
e5ba80a87c
commit
c05237686f
2 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ pub struct Args {
|
|||
/// Returns the command line arguments
|
||||
pub fn args() -> Args {
|
||||
Args {
|
||||
iter: wasi::get_args().unwrap_or(Vec::new()),
|
||||
iter: wasi::get_args().unwrap_or(Vec::new()).into_iter(),
|
||||
_dont_send_or_sync_me: PhantomData
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ pub fn current_exe() -> io::Result<PathBuf> {
|
|||
}
|
||||
|
||||
pub struct Env {
|
||||
iter: Vec<Vec<u8>>,
|
||||
iter: vec::IntoIter<Vec<u8>>,
|
||||
_dont_send_or_sync_me: PhantomData<*mut ()>,
|
||||
}
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ impl Iterator for Env {
|
|||
|
||||
pub fn env() -> Env {
|
||||
Env {
|
||||
iter: wasi::get_environ().unwrap_or(Vec::new()),
|
||||
iter: wasi::get_environ().unwrap_or(Vec::new()).into_iter(),
|
||||
_dont_send_or_sync_me: PhantomData,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue