We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d3dd9 commit 74ee6ecCopy full SHA for 74ee6ec
src/lib.rs
@@ -207,6 +207,8 @@ impl<T> Tree<T> {
207
}
208
209
/// Merge with another tree as orphan, returning the new root of tree being merged.
210
+ // Allowing this for compactness.
211
+ #[allow(clippy::option_map_unit_fn)]
212
pub fn extend_tree(&mut self, mut other_tree: Tree<T>) -> NodeMut<T> {
213
let offset = self.vec.len();
214
let offset_id = |id: NodeId| -> NodeId {
0 commit comments