mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-31 23:38:45 +00:00
Fmt
This commit is contained in:
parent
68eabf1bf1
commit
364d9c4910
4 changed files with 12 additions and 4 deletions
|
@ -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},
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
@ -248,7 +248,7 @@ impl ast::WhereClause {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait Removable : AstNode {
|
pub trait Removable: AstNode {
|
||||||
fn remove(&self);
|
fn remove(&self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue