fix(apb): remove node update

there's an undelying clone so this does nothing
This commit is contained in:
əlemi 2024-05-01 21:03:00 +02:00
parent dbf2450433
commit aa84aef66e
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -34,14 +34,6 @@ impl<T : super::Base + Clone> Iterator for Node<T> {
} }
} }
impl<T : super::Base + Clone> Node<T> {
pub fn update(&mut self, builder: impl FnOnce(T) -> T) {
if let Node::Object(x) = self {
*x = Box::new(builder((**x).clone()));
}
}
}
impl<T : super::Base> Node<T> { impl<T : super::Base> Node<T> {
/// return reference to embedded object (or last if many are present) /// return reference to embedded object (or last if many are present)
pub fn get(&self) -> Option<&T> { pub fn get(&self) -> Option<&T> {