[librsvg/librsvg-2.46] xml: use () instead of return



commit ef24e0cc43147e61f6a4b3182e899d9fe932df06
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Oct 13 12:26:18 2019 +0200

    xml: use () instead of return

 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 2c6b8b41..31c367c2 100644
--- a/rsvg_internals/src/xml.rs
+++ b/rsvg_internals/src/xml.rs
@@ -224,13 +224,13 @@ impl XmlState {
             // ^ note the space here
             // libxml2 is not finished reading the file yet; it will emit an error
             // on its own when it finishes.  So, ignore this condition.
-            Context::Start => return,
+            Context::Start => (),
 
             Context::ElementCreation => self.element_creation_characters(text),
             Context::XInclude(_) => (),
             Context::UnsupportedXIncludeChild => (),
             Context::XIncludeFallback(ref ctx) => self.xinclude_fallback_characters(&ctx, text),
-            Context::FatalError(_) => return,
+            Context::FatalError(_) => (),
         }
     }
 


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