Skip to content

Commit 5e1941c

Browse files
authored
Apply suggestions from code review
1 parent af83a96 commit 5e1941c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

library/std/src/process.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ use crate::path::Path;
115115
use crate::str;
116116
use crate::sys::pipe::{read2, AnonPipe};
117117
use crate::sys::process as imp;
118-
#[stable(feature = "command_access", since = "1.56.0")]
118+
#[stable(feature = "command_access", since = "1.57.0")]
119119
pub use crate::sys_common::process::CommandEnvs;
120120
use crate::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};
121121

@@ -948,7 +948,7 @@ impl Command {
948948
/// let cmd = Command::new("echo");
949949
/// assert_eq!(cmd.get_program(), "echo");
950950
/// ```
951-
#[stable(feature = "command_access", since = "1.56.0")]
951+
#[stable(feature = "command_access", since = "1.57.0")]
952952
pub fn get_program(&self) -> &OsStr {
953953
self.inner.get_program()
954954
}
@@ -970,7 +970,7 @@ impl Command {
970970
/// let args: Vec<&OsStr> = cmd.get_args().collect();
971971
/// assert_eq!(args, &["first", "second"]);
972972
/// ```
973-
#[stable(feature = "command_access", since = "1.56.0")]
973+
#[stable(feature = "command_access", since = "1.57.0")]
974974
pub fn get_args(&self) -> CommandArgs<'_> {
975975
CommandArgs { inner: self.inner.get_args() }
976976
}
@@ -1001,7 +1001,7 @@ impl Command {
10011001
/// (OsStr::new("TZ"), None)
10021002
/// ]);
10031003
/// ```
1004-
#[stable(feature = "command_access", since = "1.56.0")]
1004+
#[stable(feature = "command_access", since = "1.57.0")]
10051005
pub fn get_envs(&self) -> CommandEnvs<'_> {
10061006
self.inner.get_envs()
10071007
}
@@ -1021,7 +1021,7 @@ impl Command {
10211021
/// cmd.current_dir("/bin");
10221022
/// assert_eq!(cmd.get_current_dir(), Some(Path::new("/bin")));
10231023
/// ```
1024-
#[stable(feature = "command_access", since = "1.56.0")]
1024+
#[stable(feature = "command_access", since = "1.57.0")]
10251025
pub fn get_current_dir(&self) -> Option<&Path> {
10261026
self.inner.get_current_dir()
10271027
}
@@ -1053,13 +1053,13 @@ impl AsInnerMut<imp::Command> for Command {
10531053
///
10541054
/// This struct is created by [`Command::get_args`]. See its documentation for
10551055
/// more.
1056-
#[stable(feature = "command_access", since = "1.56.0")]
1056+
#[stable(feature = "command_access", since = "1.57.0")]
10571057
#[derive(Debug)]
10581058
pub struct CommandArgs<'a> {
10591059
inner: imp::CommandArgs<'a>,
10601060
}
10611061

1062-
#[stable(feature = "command_access", since = "1.56.0")]
1062+
#[stable(feature = "command_access", since = "1.57.0")]
10631063
impl<'a> Iterator for CommandArgs<'a> {
10641064
type Item = &'a OsStr;
10651065
fn next(&mut self) -> Option<&'a OsStr> {
@@ -1070,7 +1070,7 @@ impl<'a> Iterator for CommandArgs<'a> {
10701070
}
10711071
}
10721072

1073-
#[stable(feature = "command_access", since = "1.56.0")]
1073+
#[stable(feature = "command_access", since = "1.57.0")]
10741074
impl<'a> ExactSizeIterator for CommandArgs<'a> {
10751075
fn len(&self) -> usize {
10761076
self.inner.len()

library/std/src/sys_common/process.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ impl CommandEnv {
106106
/// This struct is created by
107107
/// [`Command::get_envs`][crate::process::Command::get_envs]. See its
108108
/// documentation for more.
109-
#[stable(feature = "command_access", since = "1.56.0")]
109+
#[stable(feature = "command_access", since = "1.57.0")]
110110
#[derive(Debug)]
111111
pub struct CommandEnvs<'a> {
112112
iter: crate::collections::btree_map::Iter<'a, EnvKey, Option<OsString>>,
113113
}
114114

115-
#[stable(feature = "command_access", since = "1.56.0")]
115+
#[stable(feature = "command_access", since = "1.57.0")]
116116
impl<'a> Iterator for CommandEnvs<'a> {
117117
type Item = (&'a OsStr, Option<&'a OsStr>);
118118
fn next(&mut self) -> Option<Self::Item> {
@@ -123,7 +123,7 @@ impl<'a> Iterator for CommandEnvs<'a> {
123123
}
124124
}
125125

126-
#[stable(feature = "command_access", since = "1.56.0")]
126+
#[stable(feature = "command_access", since = "1.57.0")]
127127
impl<'a> ExactSizeIterator for CommandEnvs<'a> {
128128
fn len(&self) -> usize {
129129
self.iter.len()

0 commit comments

Comments
 (0)