[librsvg: 2/3] Switch Default impl for PathCommand to an all-zeroes bit pattern



commit fe2b5e77d4c541075ad57ba3b290487789788209
Author: Sergey "Shnatsel" Davidoff <sdavydov google com>
Date:   Sat Mar 28 22:22:26 2020 +0100

    Switch Default impl for PathCommand to an all-zeroes bit pattern

 rsvg_internals/src/path_builder.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/path_builder.rs b/rsvg_internals/src/path_builder.rs
index 2a56d66a..b7deaa98 100644
--- a/rsvg_internals/src/path_builder.rs
+++ b/rsvg_internals/src/path_builder.rs
@@ -18,7 +18,7 @@ pub enum Sweep {
     Positive,
 }
 
-#[derive(Debug, Copy, Clone, PartialEq)]
+#[derive(Debug, Copy, Clone, PartialEq, Default)]
 pub struct CubicBezierCurve {
     /// The (x, y) coordinates of the first control point.
     pub pt1: (f64, f64),
@@ -334,7 +334,7 @@ pub enum PathCommand {
 
 impl Default for PathCommand {
     fn default() -> Self {
-        PathCommand::ClosePath
+        PathCommand::CurveTo(CubicBezierCurve::default())
     }
 }
 


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