Skip to content

Commit

Permalink
Merge branch 'newsch:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
cfvescovo committed Aug 22, 2024
1 parent a7d3dd9 commit 74ee6ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ impl<T> Tree<T> {
}

/// Merge with another tree as orphan, returning the new root of tree being merged.
// Allowing this for compactness.
#[allow(clippy::option_map_unit_fn)]
pub fn extend_tree(&mut self, mut other_tree: Tree<T>) -> NodeMut<T> {
let offset = self.vec.len();
let offset_id = |id: NodeId| -> NodeId {
Expand Down

0 comments on commit 74ee6ec

Please sign in to comment.