File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ pub struct Args {
3737 iter : slice:: Iter < ' static , OsString > ,
3838}
3939
40+ impl !Send for Args { }
41+ impl !Sync for Args { }
42+
4043impl fmt:: Debug for Args {
4144 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
4245 self . iter . as_slice ( ) . fmt ( f)
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ pub fn args() -> Args {
77 Args { }
88}
99
10+ impl !Send for Args { }
11+ impl !Sync for Args { }
12+
1013impl fmt:: Debug for Args {
1114 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1215 f. debug_list ( ) . finish ( )
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ pub fn args() -> Args {
1515 Args { i_forward : 0 , i_back : 0 , count }
1616}
1717
18+ impl !Send for Args { }
19+ impl !Sync for Args { }
20+
1821impl Args {
1922 /// Use sys_argv to get the arg at the requested index. Does not check that i is less than argc
2023 /// and will not return if the index is out of bounds.
You can’t perform that action at this time.
0 commit comments