diff options
| author | Christopher Hotchkiss <christopher.hotchkiss@gmail.com> | 2025-08-02 10:46:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-02 10:46:29 -0700 |
| commit | 1eb9b134f52ef9a3ffa28075bc1a1515bcfbaa8c (patch) | |
| tree | 880902d24174d0fbe47171d46b9fc73f5bd6bbad | |
| parent | 6d091b2baa33698682453c7bb72809554204e434 (diff) | |
| download | rust-1eb9b134f52ef9a3ffa28075bc1a1515bcfbaa8c.tar.gz rust-1eb9b134f52ef9a3ffa28075bc1a1515bcfbaa8c.zip | |
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.
| -rw-r--r-- | library/std/src/sys/args/common.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/args/common.rs b/library/std/src/sys/args/common.rs index e787105a05a..33f3794ee63 100644 --- a/library/std/src/sys/args/common.rs +++ b/library/std/src/sys/args/common.rs @@ -12,7 +12,7 @@ impl !Sync for Args {} impl Args { #[inline] - pub(super) fn new(args: Vec<OsString>) -> Self { + pub fn new(args: Vec<OsString>) -> Self { Args { iter: args.into_iter() } } } |
