From 6c4194848f0202a1620724733099698dead21a3b Mon Sep 17 00:00:00 2001 From: msiglreith Date: Thu, 9 Mar 2023 18:45:56 +0100 Subject: [PATCH] improve code formatting --- integrations/vello_svg/src/lib.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/integrations/vello_svg/src/lib.rs b/integrations/vello_svg/src/lib.rs index f40d650..894f812 100644 --- a/integrations/vello_svg/src/lib.rs +++ b/integrations/vello_svg/src/lib.rs @@ -64,15 +64,10 @@ pub fn render_tree_with Result<(), E mut on_err: F, ) -> Result<(), E> { for elt in svg.root.descendants() { - let transform = elt.abs_transform(); - let transform = Affine::new([ - transform.a, - transform.b, - transform.c, - transform.d, - transform.e, - transform.f, - ]); + let transform = { + let usvg::Transform { a, b, c, d, e, f } = elt.abs_transform(); + Affine::new([a, b, c, d, e, f]) + }; match &*elt.borrow() { usvg::NodeKind::Group(_) => {} usvg::NodeKind::Path(path) => {