Skip to content

Commit b228233

Browse files
authored
Change visibility of Args new function
Currently the Args new function is scope constrained to pub(super) but this stops me from being able to construct Args structs in unit tests.
1 parent 3e21361 commit b228233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/sys/args/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ impl !Sync for Args {}
1212

1313
impl Args {
1414
#[inline]
15-
pub(super) fn new(args: Vec<OsString>) -> Self {
15+
pub fn new(args: Vec<OsString>) -> Self {
1616
Args { iter: args.into_iter() }
1717
}
1818
}

0 commit comments

Comments
 (0)