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:
parent
c7d115b1ad
commit
179de609b5
8 changed files with 29 additions and 11 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue