Skip to content

Commit 4364a8c

Browse files
committed
chore: removed redundant trait implementations
1 parent 005c023 commit 4364a8c

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

src/transaction.rs

+28-28
Original file line numberDiff line numberDiff line change
@@ -490,34 +490,34 @@ pub trait Transactional<E = ()> {
490490
}
491491
}
492492
}
493-
494-
impl<E> Transactional<E> for &Tree {
495-
type View = TransactionalTree;
496-
497-
fn make_overlay(&self) -> Result<TransactionalTrees> {
498-
Ok(TransactionalTrees {
499-
inner: vec![TransactionalTree::from_tree(self)],
500-
})
501-
}
502-
503-
fn view_overlay(overlay: &TransactionalTrees) -> Self::View {
504-
overlay.inner[0].clone()
505-
}
506-
}
507-
508-
impl<E> Transactional<E> for &&Tree {
509-
type View = TransactionalTree;
510-
511-
fn make_overlay(&self) -> Result<TransactionalTrees> {
512-
Ok(TransactionalTrees {
513-
inner: vec![TransactionalTree::from_tree(*self)],
514-
})
515-
}
516-
517-
fn view_overlay(overlay: &TransactionalTrees) -> Self::View {
518-
overlay.inner[0].clone()
519-
}
520-
}
493+
//
494+
// impl<E> Transactional<E> for &Tree {
495+
// type View = TransactionalTree;
496+
//
497+
// fn make_overlay(&self) -> Result<TransactionalTrees> {
498+
// Ok(TransactionalTrees {
499+
// inner: vec![TransactionalTree::from_tree(self)],
500+
// })
501+
// }
502+
//
503+
// fn view_overlay(overlay: &TransactionalTrees) -> Self::View {
504+
// overlay.inner[0].clone()
505+
// }
506+
// }
507+
//
508+
// impl<E> Transactional<E> for &&Tree {
509+
// type View = TransactionalTree;
510+
//
511+
// fn make_overlay(&self) -> Result<TransactionalTrees> {
512+
// Ok(TransactionalTrees {
513+
// inner: vec![TransactionalTree::from_tree(*self)],
514+
// })
515+
// }
516+
//
517+
// fn view_overlay(overlay: &TransactionalTrees) -> Self::View {
518+
// overlay.inner[0].clone()
519+
// }
520+
// }
521521

522522
impl<E> Transactional<E> for Tree {
523523
type View = TransactionalTree;

src/tree.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ impl Tree {
373373
&transaction::TransactionalTree,
374374
) -> transaction::ConflictableTransactionResult<A, E>,
375375
{
376-
Transactional::transaction(&self, f)
376+
Transactional::transaction(self, f)
377377
}
378378

379379
/// Create a new batched update that can be

0 commit comments

Comments
 (0)