Skip to content

Commit

Permalink
Fix cargo fmt.
Browse files Browse the repository at this point in the history
I broke this in PR linebender#79.
  • Loading branch information
waywardmonkeys committed Jul 8, 2023
1 parent df1742e commit 668c5a3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/xilem_svg/src/kurbo_shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ impl<T> View<T> for BezPath {
.document()
.create_element_ns(Some("http://www.w3.org/2000/svg"), "path")
.unwrap();
el.set_attribute("d", &self.to_svg())
.unwrap();
el.set_attribute("d", &self.to_svg()).unwrap();
let id = Id::next();
(id, (), el)
}
Expand All @@ -260,9 +259,7 @@ impl<T> View<T> for BezPath {
) -> ChangeFlags {
let mut is_changed = ChangeFlags::default();
if self != prev {
element
.set_attribute("d", &self.to_svg())
.unwrap();
element.set_attribute("d", &self.to_svg()).unwrap();
is_changed |= ChangeFlags::OTHER_CHANGE;
}
is_changed
Expand Down

0 comments on commit 668c5a3

Please sign in to comment.