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 {
19
19
/// Returns the command line arguments
20
20
pub fn args ( ) -> Args {
21
21
Args {
22
- iter : wasi:: get_args ( ) . unwrap_or ( Vec :: new ( ) ) ,
22
+ iter : wasi:: get_args ( ) . unwrap_or ( Vec :: new ( ) ) . into_iter ( ) ,
23
23
_dont_send_or_sync_me : PhantomData
24
24
}
25
25
}
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ pub fn current_exe() -> io::Result<PathBuf> {
75
75
}
76
76
77
77
pub struct Env {
78
- iter : Vec < Vec < u8 > > ,
78
+ iter : vec :: IntoIter < Vec < u8 > > ,
79
79
_dont_send_or_sync_me : PhantomData < * mut ( ) > ,
80
80
}
81
81
@@ -100,7 +100,7 @@ impl Iterator for Env {
100
100
101
101
pub fn env ( ) -> Env {
102
102
Env {
103
- iter : wasi:: get_environ ( ) . unwrap_or ( Vec :: new ( ) ) ,
103
+ iter : wasi:: get_environ ( ) . unwrap_or ( Vec :: new ( ) ) . into_iter ( ) ,
104
104
_dont_send_or_sync_me : PhantomData ,
105
105
}
106
106
}
You can’t perform that action at this time.
0 commit comments