diff --git a/crates/xilem_svg/src/kurbo_shape.rs b/crates/xilem_svg/src/kurbo_shape.rs index 4921c902c..515642202 100644 --- a/crates/xilem_svg/src/kurbo_shape.rs +++ b/crates/xilem_svg/src/kurbo_shape.rs @@ -244,7 +244,7 @@ impl View for BezPath { .document() .create_element_ns(Some("http://www.w3.org/2000/svg"), "path") .unwrap(); - el.set_attribute("d", &format!("{}", self.to_svg())) + el.set_attribute("d", &self.to_svg()) .unwrap(); let id = Id::next(); (id, (), el) @@ -261,7 +261,7 @@ impl View for BezPath { let mut is_changed = ChangeFlags::default(); if self != prev { element - .set_attribute("d", &format!("{}", self.to_svg())) + .set_attribute("d", &self.to_svg()) .unwrap(); is_changed |= ChangeFlags::OTHER_CHANGE; }