fix old clippy warnings
All checks were successful
buildbot/cargo fmt (1.72) Build done.
buildbot/cargo doc (1.72) Build done.
buildbot/cargo test (1.65) Build done.
buildbot/cargo clippy (1.72) Build done.
buildbot/cargo clippy (1.65) Build done.

This commit is contained in:
AF 2023-08-31 23:09:36 +00:00
parent 3c095f0fb5
commit 22abcbbeff

View File

@ -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)
})
}