[librsvg] normalize_default(): No need to coalesce (space, tab)



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]