[librsvg/librsvg-2.46] css: cleanup map() call



commit 4bcdd519d3ac93f08bddebfc89dca65fdd582d50
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Oct 13 12:49:19 2019 +0200

    css: cleanup map() call

 rsvg_internals/src/css.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/css.rs b/rsvg_internals/src/css.rs
index df0d67aa..2bb4a3b9 100644
--- a/rsvg_internals/src/css.rs
+++ b/rsvg_internals/src/css.rs
@@ -191,7 +191,7 @@ impl CssRules {
         let decl_list = self
             .selectors_to_declarations
             .entry(selector)
-            .or_insert_with(|| DeclarationList::default());
+            .or_insert_with(DeclarationList::default);
 
         decl_list.add_declaration(declaration);
     }


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