remove unnecessary Clone bound

This commit is contained in:
AF 2023-06-16 08:43:51 +00:00
parent 0a0ec3a882
commit 1e9258717a

View File

@ -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>;