[librsvg: 23/43] xml: use () instead of return



commit aaa9f225da5eb35a98c2b52f7ea0bbbc6b8f8a58
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 957f8db9..f27a77b3 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]