Skip to content

Commit

Permalink
chore: remove set_* and stay consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
kkharji committed May 21, 2022
1 parent 53f83e9 commit 87b3b6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ impl Process {
}

/// Set the process's stdout.
pub fn set_stdout(&mut self, stdout: Stdio) {
pub fn stdout(&mut self, stdout: Stdio) {
self.stdout = stdout.into();
}

/// Set the process's stderr.
pub fn set_stderr(&mut self, stderr: Stdio) {
pub fn stderr(&mut self, stderr: Stdio) {
self.stderr = stderr.into();
}
}
Expand Down

0 comments on commit 87b3b6a

Please sign in to comment.