This commit is contained in:
newpavlov 2019-08-19 16:01:21 +03:00
parent e5ba80a87c
commit c05237686f
2 changed files with 3 additions and 3 deletions

View file

@ -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
}
}

View file

@ -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,
}
}