improve code formatting

This commit is contained in:
msiglreith 2023-03-09 18:45:56 +01:00
parent 5aaf288d1c
commit 6c4194848f

View file

@ -64,15 +64,10 @@ pub fn render_tree_with<F: FnMut(&mut SceneBuilder, &usvg::Node) -> Result<(), E
mut on_err: F, mut on_err: F,
) -> Result<(), E> { ) -> Result<(), E> {
for elt in svg.root.descendants() { for elt in svg.root.descendants() {
let transform = elt.abs_transform(); let transform = {
let transform = Affine::new([ let usvg::Transform { a, b, c, d, e, f } = elt.abs_transform();
transform.a, Affine::new([a, b, c, d, e, f])
transform.b, };
transform.c,
transform.d,
transform.e,
transform.f,
]);
match &*elt.borrow() { match &*elt.borrow() {
usvg::NodeKind::Group(_) => {} usvg::NodeKind::Group(_) => {}
usvg::NodeKind::Path(path) => { usvg::NodeKind::Path(path) => {