[librsvg: 13/45] impl_paint_source! - use a type, not a token tree, for the gradient



commit aaf920eb8bc78379365f7022e0572b91718c2571
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Sep 26 20:26:05 2019 -0500

    impl_paint_source! - use a type, not a token tree, for the gradient
    
    We don't need the hacky :tt anymore because we aren't using the
    FooGradient pattern match as well as a type name.

 rsvg_internals/src/gradient.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/gradient.rs b/rsvg_internals/src/gradient.rs
index ec3e15df..b1231925 100644
--- a/rsvg_internals/src/gradient.rs
+++ b/rsvg_internals/src/gradient.rs
@@ -578,7 +578,7 @@ macro_rules! impl_resolve {
 }
 
 macro_rules! impl_paint_source {
-    ($gradient:tt, $node_type:pat, $other_gradient:ty, $other_type:pat, $resolved:ty,) => {
+    ($gradient:ty, $node_type:pat, $other_gradient:ty, $other_type:pat, $resolved:ty,) => {
         impl PaintSource for $gradient {
             type Resolved = $resolved;
 


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