Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-db/src/imports/merge_imports.rs')
| -rw-r--r-- | crates/ide-db/src/imports/merge_imports.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ide-db/src/imports/merge_imports.rs b/crates/ide-db/src/imports/merge_imports.rs index c7d9034f74..7fb4b90e6d 100644 --- a/crates/ide-db/src/imports/merge_imports.rs +++ b/crates/ide-db/src/imports/merge_imports.rs @@ -30,6 +30,8 @@ impl MergeBehavior { } } +/// Merge `rhs` into `lhs` keeping both intact. +/// Returned AST is mutable. pub fn try_merge_imports( lhs: &ast::Use, rhs: &ast::Use, @@ -51,6 +53,8 @@ pub fn try_merge_imports( Some(lhs) } +/// Merge `rhs` into `lhs` keeping both intact. +/// Returned AST is mutable. pub fn try_merge_trees( lhs: &ast::UseTree, rhs: &ast::UseTree, |