From aa84aef66e1f714badbe0a52afc7e730b1d6b3dc Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 1 May 2024 21:03:00 +0200 Subject: [PATCH] fix(apb): remove node update there's an undelying clone so this does nothing --- apb/src/node.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apb/src/node.rs b/apb/src/node.rs index ce19419..1380ea6 100644 --- a/apb/src/node.rs +++ b/apb/src/node.rs @@ -34,14 +34,6 @@ impl Iterator for Node { } } -impl Node { - pub fn update(&mut self, builder: impl FnOnce(T) -> T) { - if let Node::Object(x) = self { - *x = Box::new(builder((**x).clone())); - } - } -} - impl Node { /// return reference to embedded object (or last if many are present) pub fn get(&self) -> Option<&T> {