This commit is contained in:
ice1000 2022-09-02 05:13:33 +00:00
parent 68eabf1bf1
commit 364d9c4910
4 changed files with 12 additions and 4 deletions

View file

@ -1,6 +1,10 @@
use either::Either; use either::Either;
use ide_db::imports::merge_imports::{try_merge_imports, try_merge_trees, MergeBehavior}; use ide_db::imports::merge_imports::{try_merge_imports, try_merge_trees, MergeBehavior};
use syntax::{algo::neighbor, ast::{self, edit_in_place::Removable}, match_ast, ted, AstNode, SyntaxElement, SyntaxNode}; use syntax::{
algo::neighbor,
ast::{self, edit_in_place::Removable},
match_ast, ted, AstNode, SyntaxElement, SyntaxNode,
};
use crate::{ use crate::{
assist_context::{AssistContext, Assists}, assist_context::{AssistContext, Assists},

View file

@ -1,5 +1,9 @@
use syntax::{ use syntax::{
ast::{self, edit_in_place::{GenericParamsOwnerEdit, Removable}, make, AstNode, HasName, HasTypeBounds}, ast::{
self,
edit_in_place::{GenericParamsOwnerEdit, Removable},
make, AstNode, HasName, HasTypeBounds,
},
match_ast, match_ast,
}; };

View file

@ -1,5 +1,5 @@
use syntax::{ use syntax::{
ast::{self, make, HasVisibility, edit_in_place::Removable}, ast::{self, edit_in_place::Removable, make, HasVisibility},
ted::{self, Position}, ted::{self, Position},
AstNode, SyntaxKind, AstNode, SyntaxKind,
}; };

View file

@ -248,7 +248,7 @@ impl ast::WhereClause {
} }
} }
pub trait Removable : AstNode { pub trait Removable: AstNode {
fn remove(&self); fn remove(&self);
} }