Skip to content

Commit

Permalink
fix: add missing semicolon in remove method call
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <tareknaser360@gmail.com>
  • Loading branch information
tareknaser committed Dec 7, 2024
1 parent 01eaf9a commit 4fb1b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/syntax/src/ast/edit_in_place.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ impl ast::UseTree {

if let Some(u) = parent.clone().and_then(ast::Use::cast) {
if u.use_tree().is_none() {
u.remove()
u.remove();
}
} else if let Some(u) = parent.and_then(ast::UseTreeList::cast) {
if u.use_trees().next().is_none() {
Expand Down

0 comments on commit 4fb1b1e

Please sign in to comment.