File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ pub struct Args {
37
37
iter : slice:: Iter < ' static , OsString > ,
38
38
}
39
39
40
+ impl !Send for Args { }
41
+ impl !Sync for Args { }
42
+
40
43
impl fmt:: Debug for Args {
41
44
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
42
45
self . iter . as_slice ( ) . fmt ( f)
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ pub fn args() -> Args {
7
7
Args { }
8
8
}
9
9
10
+ impl !Send for Args { }
11
+ impl !Sync for Args { }
12
+
10
13
impl fmt:: Debug for Args {
11
14
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
12
15
f. debug_list ( ) . finish ( )
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ pub fn args() -> Args {
15
15
Args { i_forward : 0 , i_back : 0 , count }
16
16
}
17
17
18
+ impl !Send for Args { }
19
+ impl !Sync for Args { }
20
+
18
21
impl Args {
19
22
/// Use sys_argv to get the arg at the requested index. Does not check that i is less than argc
20
23
/// and will not return if the index is out of bounds.
You can’t perform that action at this time.
0 commit comments