From 22abcbbeff512bd8e3666914e0196ad073bf1356 Mon Sep 17 00:00:00 2001 From: timofey Date: Thu, 31 Aug 2023 23:09:36 +0000 Subject: [PATCH] fix old clippy warnings --- src/flow/binary.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flow/binary.rs b/src/flow/binary.rs index e4dd68e..989eff7 100644 --- a/src/flow/binary.rs +++ b/src/flow/binary.rs @@ -83,7 +83,7 @@ pub trait BinaryTreesMutable<'a>: BinaryTreesEmpty<'a> + BinaryTreesTreeOf<'a> { Self::bind(ft, move |t| ctx.join_key_tree(tll, kl, t)) }; let ft = { - let ctx = self.clone(); + let ctx = self; Self::bind(ft, move |t| ctx.join_key_tree(t, kr, trr)) }; ft @@ -123,7 +123,7 @@ pub trait BinaryTreesMutable<'a>: BinaryTreesEmpty<'a> + BinaryTreesTreeOf<'a> { } fn remove(self, tree: Self::Tree, key: Self::Key) -> BTWrap<'a, Self, Self::Tree> { - Self::bind(self.clone().split_key(tree, key.clone()), |(tl, tr)| { + Self::bind(self.clone().split_key(tree, key), |(tl, tr)| { self.join(tl, tr) }) }