From 1808175f981433f474f14db31140344189770ba6 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Mon, 23 Sep 2019 14:31:30 -0400 Subject: Drive by lints --- crates/ra_assists/src/ast_editor.rs | 2 +- crates/ra_assists/src/fill_match_arms.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_assists') 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 { } impl AstEditor { - pub fn new(node: N) -> AstEditor + pub fn new(node: N) -> Self where N: Clone, { 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) -> Option::from_pieces( iter::once(pat), &AstBuilder::::unit(), -- cgit v1.2.3