[librsvg] xml: use more idiomatic rust



commit 505cd3e80bee6f9a643257e8e8ff973c51ed650c
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Apr 5 14:22:15 2020 +0200

    xml: use more idiomatic rust

 rsvg_internals/src/xml.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/xml.rs b/rsvg_internals/src/xml.rs
index f82e1f38..82a82087 100644
--- a/rsvg_internals/src/xml.rs
+++ b/rsvg_internals/src/xml.rs
@@ -680,9 +680,9 @@ fn parse_xml_stylesheet_processing_instruction(data: &str) -> Result<Vec<(String
     let pi_data = pi_data.borrow();
 
     if pi_data.error {
-        return Err(());
+        Err(())
     } else {
-        return Ok(pi_data.attributes.clone());
+        Ok(pi_data.attributes.clone())
     }
 }
 


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