[librsvg] make_ident_property(): Qualify the type names we use so the caller doesn't have to import them



commit 336fbdae2aed73872450e6288bfb2c06268835a2
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Mar 26 14:40:42 2018 -0600

    make_ident_property(): Qualify the type names we use so the caller doesn't have to import them

 rsvg_internals/src/property_macros.rs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/rsvg_internals/src/property_macros.rs b/rsvg_internals/src/property_macros.rs
index 0bf73ef1..618c2de5 100644
--- a/rsvg_internals/src/property_macros.rs
+++ b/rsvg_internals/src/property_macros.rs
@@ -50,15 +50,15 @@ macro_rules! make_ident_property {
             }
         }
 
-        impl Parse for $name {
+        impl ::parsers::Parse for $name {
             type Data = ();
-            type Err = AttributeError;
+            type Err = ::error::AttributeError;
 
-            fn parse(s: &str, _: Self::Data) -> Result<$name, AttributeError> {
+            fn parse(s: &str, _: Self::Data) -> Result<$name, ::error::AttributeError> {
                 match s.trim() {
                     $($str_prop => Ok($name::$variant),)+
 
-                    _ => Err(AttributeError::from(ParseError::new("invalid value"))),
+                    _ => Err(::error::AttributeError::from(::parsers::ParseError::new("invalid value"))),
                 }
             }
         }


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