fix old clippy warnings
This commit is contained in:
parent
3c095f0fb5
commit
22abcbbeff
@ -83,7 +83,7 @@ pub trait BinaryTreesMutable<'a>: BinaryTreesEmpty<'a> + BinaryTreesTreeOf<'a> {
|
|||||||
Self::bind(ft, move |t| ctx.join_key_tree(tll, kl, t))
|
Self::bind(ft, move |t| ctx.join_key_tree(tll, kl, t))
|
||||||
};
|
};
|
||||||
let ft = {
|
let ft = {
|
||||||
let ctx = self.clone();
|
let ctx = self;
|
||||||
Self::bind(ft, move |t| ctx.join_key_tree(t, kr, trr))
|
Self::bind(ft, move |t| ctx.join_key_tree(t, kr, trr))
|
||||||
};
|
};
|
||||||
ft
|
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> {
|
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)
|
self.join(tl, tr)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user