diff options
author | Aleksey Kladov <[email protected]> | 2020-04-09 22:35:05 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-09 22:42:01 +0100 |
commit | 30084a56a5731343bd4cec727646a6c55900234f (patch) | |
tree | cca4821454502279317323fbc63dccdb9c68c5b9 /crates/ra_assists/src | |
parent | 00ec0c10669307bc752812f535f96e121338d688 (diff) |
Simpler acessors for keywords
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r-- | crates/ra_assists/src/handlers/inline_local_variable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/handlers/inline_local_variable.rs b/crates/ra_assists/src/handlers/inline_local_variable.rs index b9eb09676..c4fb425b0 100644 --- a/crates/ra_assists/src/handlers/inline_local_variable.rs +++ b/crates/ra_assists/src/handlers/inline_local_variable.rs | |||
@@ -29,7 +29,7 @@ pub(crate) fn inline_local_variable(ctx: AssistCtx) -> Option<Assist> { | |||
29 | ast::Pat::BindPat(pat) => pat, | 29 | ast::Pat::BindPat(pat) => pat, |
30 | _ => return None, | 30 | _ => return None, |
31 | }; | 31 | }; |
32 | if bind_pat.mut_kw_token().is_some() { | 32 | if bind_pat.mut_token().is_some() { |
33 | tested_by!(test_not_inline_mut_variable); | 33 | tested_by!(test_not_inline_mut_variable); |
34 | return None; | 34 | return None; |
35 | } | 35 | } |