[librsvg: 2/17] Replace another .map_err() with .attribute() from AttributeResultExt



commit b9bea1409fc71e295dfb04d9c8ec1268fd6f6ecf
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu May 2 13:13:07 2019 -0500

    Replace another .map_err() with .attribute() from AttributeResultExt

 rsvg_internals/src/properties.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/properties.rs b/rsvg_internals/src/properties.rs
index e42dc9cd..4b3e06db 100644
--- a/rsvg_internals/src/properties.rs
+++ b/rsvg_internals/src/properties.rs
@@ -583,7 +583,7 @@ impl SpecifiedValues {
         // Ignore unsupported / illegal values; don't set the whole
         // node to be in error in that case.
 
-        if let Err(e) = parse().map_err(|e| NodeError::attribute_error(attr, e)) {
+        if let Err(e) = parse().attribute(attr) {
             rsvg_log!(
                 "(style property error for attribute {:?}\n    value=\"{}\"\n    {}\n    property \
                  will be ignored)",


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