diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2015-02-19 14:36:58 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2015-02-20 00:58:15 +0100 |
| commit | c8dd2d066d7b25246d2b940b7c161b8b67608b74 (patch) | |
| tree | 7b6c4fecc16df3ccfc388d16b46011be49a864ba /src/libunicode | |
| parent | a641996796f0ab11021671c0ce70a3c975bb4e37 (diff) | |
Addressed PR comments
Diffstat (limited to 'src/libunicode')
| -rw-r--r-- | src/libunicode/u_str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libunicode/u_str.rs b/src/libunicode/u_str.rs index 9bd8c5525a0..38cbe5c7dea 100644 --- a/src/libunicode/u_str.rs +++ b/src/libunicode/u_str.rs @@ -84,7 +84,7 @@ impl UnicodeStr for str { #[inline] fn trim(&self) -> &str { - self.trim_left().trim_right() + self.trim_matches(|c: char| c.is_whitespace()) } #[inline] |
