[librsvg/librsvg-2.46] cond: cleanup map() call
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.46] cond: cleanup map() call
- Date: Tue, 15 Oct 2019 16:46:53 +0000 (UTC)
commit 5c755a55f50d6efb05eb366d189f3cc7e96c9c1f
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]