aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_assists')
-rw-r--r--crates/ra_assists/src/ast_editor.rs2
-rw-r--r--crates/ra_assists/src/fill_match_arms.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/ast_editor.rs b/crates/ra_assists/src/ast_editor.rs
index a710edce8..fd94d6960 100644
--- a/crates/ra_assists/src/ast_editor.rs
+++ b/crates/ra_assists/src/ast_editor.rs
@@ -19,7 +19,7 @@ pub struct AstEditor<N: AstNode> {
19} 19}
20 20
21impl<N: AstNode> AstEditor<N> { 21impl<N: AstNode> AstEditor<N> {
22 pub fn new(node: N) -> AstEditor<N> 22 pub fn new(node: N) -> Self
23 where 23 where
24 N: Clone, 24 N: Clone,
25 { 25 {
diff --git a/crates/ra_assists/src/fill_match_arms.rs b/crates/ra_assists/src/fill_match_arms.rs
index 543ed164c..f59062bb9 100644
--- a/crates/ra_assists/src/fill_match_arms.rs
+++ b/crates/ra_assists/src/fill_match_arms.rs
@@ -29,7 +29,7 @@ pub(crate) fn fill_match_arms(mut ctx: AssistCtx<impl HirDatabase>) -> Option<As
29 29
30 ctx.add_action(AssistId("fill_match_arms"), "fill match arms", |edit| { 30 ctx.add_action(AssistId("fill_match_arms"), "fill match arms", |edit| {
31 let variants = variant_list.variants(); 31 let variants = variant_list.variants();
32 let arms = variants.into_iter().filter_map(build_pat).map(|pat| { 32 let arms = variants.filter_map(build_pat).map(|pat| {
33 AstBuilder::<ast::MatchArm>::from_pieces( 33 AstBuilder::<ast::MatchArm>::from_pieces(
34 iter::once(pat), 34 iter::once(pat),
35 &AstBuilder::<ast::Expr>::unit(), 35 &AstBuilder::<ast::Expr>::unit(),