[librsvg] normalize_default(): No need to coalesce (space, tab)
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] normalize_default(): No need to coalesce (space, tab)
- Date: Fri, 15 Dec 2017 18:54:27 +0000 (UTC)
commit 05459ae859dcb00419609b09fbeed7470c1d4e83
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Dec 15 12:51:42 2017 -0600
normalize_default(): No need to coalesce (space, tab)
Tabs have already been removed by the map().
Thanks to Jamey Sharp for pointing this out.
rust/src/space.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rust/src/space.rs b/rust/src/space.rs
index 4fe3bc1..a2de800 100644
--- a/rust/src/space.rs
+++ b/rust/src/space.rs
@@ -38,7 +38,7 @@ fn normalize_default(s: &str) -> String {
c => c,
})
.coalesce(|current, next| match (current, next) {
- (' ', ' ') | (' ', '\t') => Ok(' '),
+ (' ', ' ') => Ok(' '),
(_, _) => Err((current, next)),
})
.collect::<String>()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]