diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-08-06 15:55:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-06 15:55:44 +0200 |
| commit | bde39e58d60c631b8a4ee7204237befb3b98d50b (patch) | |
| tree | d3c1a680738d9a100f899b28c106ff4bfff3a890 /library/std/src | |
| parent | 21e488c00a302945751f90086d71cd961352cf56 (diff) | |
| parent | 1eb9b134f52ef9a3ffa28075bc1a1515bcfbaa8c (diff) | |
| download | rust-bde39e58d60c631b8a4ee7204237befb3b98d50b.tar.gz rust-bde39e58d60c631b8a4ee7204237befb3b98d50b.zip | |
Rollup merge of #144836 - chotchki:patch-1, r=tgross35
Change visibility of Args new function Currently the Args new function is constrained to pub(super) but this stops me from being able to construct Args structs in unit tests. This pull request is to change this to pub.
Diffstat (limited to 'library/std/src')
| -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() } } } |
