summaryrefslogtreecommitdiffstats
path: root/graphics/src/widget/canvas/path
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/widget/canvas/path')
-rw-r--r--graphics/src/widget/canvas/path/builder.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/graphics/src/widget/canvas/path/builder.rs b/graphics/src/widget/canvas/path/builder.rs
index d04dbdde..05316d8a 100644
--- a/graphics/src/widget/canvas/path/builder.rs
+++ b/graphics/src/widget/canvas/path/builder.rs
@@ -53,7 +53,7 @@ impl Builder {
let _ = self.raw.line_to(a);
}
- let _ = self.raw.arc_to(
+ self.raw.arc_to(
math::Vector::new(radius, radius),
math::Angle::radians(0.0),
path::ArcFlags::default(),
@@ -151,3 +151,9 @@ impl Builder {
}
}
}
+
+impl Default for Builder {
+ fn default() -> Self {
+ Self::new()
+ }
+}