diff --git a/src/transaction.rs b/src/transaction.rs index a2bd6e69f..c3a36ed48 100644 --- a/src/transaction.rs +++ b/src/transaction.rs @@ -490,34 +490,34 @@ pub trait Transactional { } } } - -impl Transactional for &Tree { - type View = TransactionalTree; - - fn make_overlay(&self) -> Result { - Ok(TransactionalTrees { - inner: vec![TransactionalTree::from_tree(self)], - }) - } - - fn view_overlay(overlay: &TransactionalTrees) -> Self::View { - overlay.inner[0].clone() - } -} - -impl Transactional for &&Tree { - type View = TransactionalTree; - - fn make_overlay(&self) -> Result { - Ok(TransactionalTrees { - inner: vec![TransactionalTree::from_tree(*self)], - }) - } - - fn view_overlay(overlay: &TransactionalTrees) -> Self::View { - overlay.inner[0].clone() - } -} +// +// impl Transactional for &Tree { +// type View = TransactionalTree; +// +// fn make_overlay(&self) -> Result { +// Ok(TransactionalTrees { +// inner: vec![TransactionalTree::from_tree(self)], +// }) +// } +// +// fn view_overlay(overlay: &TransactionalTrees) -> Self::View { +// overlay.inner[0].clone() +// } +// } +// +// impl Transactional for &&Tree { +// type View = TransactionalTree; +// +// fn make_overlay(&self) -> Result { +// Ok(TransactionalTrees { +// inner: vec![TransactionalTree::from_tree(*self)], +// }) +// } +// +// fn view_overlay(overlay: &TransactionalTrees) -> Self::View { +// overlay.inner[0].clone() +// } +// } impl Transactional for Tree { type View = TransactionalTree; diff --git a/src/tree.rs b/src/tree.rs index b1a540afa..6137921df 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -373,7 +373,7 @@ impl Tree { &transaction::TransactionalTree, ) -> transaction::ConflictableTransactionResult, { - Transactional::transaction(&self, f) + Transactional::transaction(self, f) } /// Create a new batched update that can be