From aa2d6b8d1148a5eaabdfa9f5044c8e8bc493e923 Mon Sep 17 00:00:00 2001 From: Shuanghui Yan Date: Thu, 24 Feb 2022 18:13:00 +0800 Subject: [PATCH] fix: format styles --- packages/core/src/mutations.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/core/src/mutations.rs b/packages/core/src/mutations.rs index e6c83f92d..de9656ffd 100644 --- a/packages/core/src/mutations.rs +++ b/packages/core/src/mutations.rs @@ -220,15 +220,13 @@ impl<'a> Mutations<'a> { pub(crate) fn remove_attribute(&mut self, attribute: &Attribute, root: u64) { let Attribute { - name, - namespace, - .. + name, namespace, .. } = attribute; - self.edits.push(RemoveAttribute { + self.edits.push(RemoveAttribute { name, ns: *namespace, - root + root, }); }