forked from alemi/upub
fix(apb): remove node update
there's an undelying clone so this does nothing
This commit is contained in:
parent
dbf2450433
commit
aa84aef66e
1 changed files with 0 additions and 8 deletions
|
@ -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> {
|
||||
/// return reference to embedded object (or last if many are present)
|
||||
pub fn get(&self) -> Option<&T> {
|
||||
|
|
Loading…
Reference in a new issue