[librsvg] cargo-clippy: gradient.rs - prettier pattern matching



commit 9363f539e4c4cccbdc6e5d2facddf79a83f7aae3
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Feb 22 13:27:01 2018 -0600

    cargo-clippy: gradient.rs - prettier pattern matching

 rust/src/gradient.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rust/src/gradient.rs b/rust/src/gradient.rs
index acaf1066..b94edf06 100644
--- a/rust/src/gradient.rs
+++ b/rust/src/gradient.rs
@@ -238,7 +238,7 @@ impl GradientVariant {
             },
         }
 
-        if let &mut GradientVariant::Radial { cx, cy, ref mut fx, ref mut fy, .. } = self {
+        if let GradientVariant::Radial { cx, cy, ref mut fx, ref mut fy, .. } = *self {
             // fx and fy fall back to the presentational value of cx and cy
             fallback_to!(*fx, cx);
             fallback_to!(*fy, cy);


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