[librsvg: 34/43] cond: cleanup map() call



commit 3633e8dbe3ff0a239386acdd5354bfa1ed14e533
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Oct 13 12:48:38 2019 +0200

    cond: cleanup map() call

 rsvg_internals/src/cond.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/cond.rs b/rsvg_internals/src/cond.rs
index 63a67394..8bbf1cb8 100644
--- a/rsvg_internals/src/cond.rs
+++ b/rsvg_internals/src/cond.rs
@@ -96,7 +96,7 @@ impl SystemLanguage {
                         Ok(SystemLanguage(have_match))
                     } else {
                         locale_accepts_language_tag(locale, &language_tag)
-                            .map(|matches| SystemLanguage(matches))
+                            .map(SystemLanguage)
                     }
                 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]