1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

Replace trim_{left,right} with trim_{start,end} and co. (using Rerast)

This commit is contained in:
Alex Lyon 2019-04-28 03:49:18 -07:00
parent c7d115b1ad
commit 179de609b5
8 changed files with 29 additions and 11 deletions

View file

@ -110,8 +110,8 @@ impl CmdResult {
/// stderr_only is a better choice unless stdout may or will be non-empty
pub fn stderr_is<T: AsRef<str>>(&self, msg: T) -> Box<&CmdResult> {
assert_eq!(
String::from(msg.as_ref()).trim_right(),
self.stderr.trim_right()
String::from(msg.as_ref()).trim_end(),
self.stderr.trim_end()
);
Box::new(self)
}