Skip to content

Commit

Permalink
Merge pull request #81 from waywardmonkeys/fix-cargo-fmt
Browse files Browse the repository at this point in the history
Fix cargo fmt.
  • Loading branch information
Philipp-M authored Jul 8, 2023
2 parents df1742e + 668c5a3 commit a64be37
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 a64be37

Please sign in to comment.