remove unnecessary Clone
bound
This commit is contained in:
parent
0a0ec3a882
commit
1e9258717a
@ -26,10 +26,7 @@ trait BinaryTreesBindable<'a>: BinaryTrees<'a> {
|
|||||||
fn bounds_error<T: 'a>(&self, error: BoundsError<Self::Key>) -> BTWrap<'a, Self, T>;
|
fn bounds_error<T: 'a>(&self, error: BoundsError<Self::Key>) -> BTWrap<'a, Self, T>;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, BT: BinaryTreesBindable<'a>> BinaryTrees<'a> for BoundTrees<BT>
|
impl<'a, BT: BinaryTreesBindable<'a>> BinaryTrees<'a> for BoundTrees<BT> {
|
||||||
where
|
|
||||||
BT::Tree: Clone,
|
|
||||||
{
|
|
||||||
type Node = BoundNode2<Self::Key, BT::Node>;
|
type Node = BoundNode2<Self::Key, BT::Node>;
|
||||||
|
|
||||||
type Reference = Bound<Self::Key, BT::Reference>;
|
type Reference = Bound<Self::Key, BT::Reference>;
|
||||||
|
Loading…
Reference in New Issue
Block a user