File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub struct Args {
1919/// Returns the command line arguments
2020pub fn args ( ) -> Args {
2121 Args {
22- iter : wasi:: get_args ( ) . unwrap_or ( Vec :: new ( ) ) ,
22+ iter : wasi:: get_args ( ) . unwrap_or ( Vec :: new ( ) ) . into_iter ( ) ,
2323 _dont_send_or_sync_me : PhantomData
2424 }
2525}
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ pub fn current_exe() -> io::Result<PathBuf> {
7575}
7676
7777pub struct Env {
78- iter : Vec < Vec < u8 > > ,
78+ iter : vec :: IntoIter < Vec < u8 > > ,
7979 _dont_send_or_sync_me : PhantomData < * mut ( ) > ,
8080}
8181
@@ -100,7 +100,7 @@ impl Iterator for Env {
100100
101101pub fn env ( ) -> Env {
102102 Env {
103- iter : wasi:: get_environ ( ) . unwrap_or ( Vec :: new ( ) ) ,
103+ iter : wasi:: get_environ ( ) . unwrap_or ( Vec :: new ( ) ) . into_iter ( ) ,
104104 _dont_send_or_sync_me : PhantomData ,
105105 }
106106}
You can’t perform that action at this time.
0 commit comments