Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Sep 2, 2022
1 parent 68eabf1 commit 364d9c4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion crates/ide-assists/src/handlers/merge_imports.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
use either::Either;
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::{
assist_context::{AssistContext, Assists},
Expand Down
6 changes: 5 additions & 1 deletion crates/ide-assists/src/handlers/move_bounds.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
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,
};

Expand Down
2 changes: 1 addition & 1 deletion crates/ide-assists/src/handlers/unmerge_use.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use syntax::{
ast::{self, make, HasVisibility, edit_in_place::Removable},
ast::{self, edit_in_place::Removable, make, HasVisibility},
ted::{self, Position},
AstNode, SyntaxKind,
};
Expand Down
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 @@ -248,7 +248,7 @@ impl ast::WhereClause {
}
}

pub trait Removable : AstNode {
pub trait Removable: AstNode {
fn remove(&self);
}

Expand Down

0 comments on commit 364d9c4

Please sign in to comment.