[librsvg: 10/43] svg: cleanup map call
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 10/43] svg: cleanup map call
- Date: Tue, 15 Oct 2019 00:06:19 +0000 (UTC)
commit ca0e1a6134490e186e7ef650fdba86d46c0de913
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Oct 13 12:18:11 2019 +0200
svg: cleanup map call
rsvg_internals/src/svg.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/svg.rs b/rsvg_internals/src/svg.rs
index e23f1764..daa0f918 100644
--- a/rsvg_internals/src/svg.rs
+++ b/rsvg_internals/src/svg.rs
@@ -129,7 +129,7 @@ impl Resources {
match self.resources.entry(aurl) {
Entry::Occupied(e) => e.get().clone(),
Entry::Vacant(e) => {
- let svg = load_svg(load_options, e.key()).map(|s| Rc::new(s));
+ let svg = load_svg(load_options, e.key()).map(Rc::new);
let res = e.insert(svg);
res.clone()
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]