Inline Execs::_with_stderr

This commit is contained in:
Dale Wijnand 2018-08-24 16:55:34 +01:00
parent 035b5b9d5a
commit e9bfe8fa04
No known key found for this signature in database
GPG key ID: 4F256E3D151DF5EF

View file

@ -552,12 +552,8 @@ impl Execs {
/// Verify that stderr is equal to the given lines.
/// See `lines_match` for supported patterns.
pub fn with_stderr<S: ToString>(mut self, expected: S) -> Execs {
self._with_stderr(&expected);
self
}
fn _with_stderr(&mut self, expected: &ToString) {
self.expect_stderr = Some(expected.to_string());
self
}
/// Verify the exit code from the process.