diff options
author | Alan Du <[email protected]> | 2018-10-20 17:29:25 +0100 |
---|---|---|
committer | Alan Du <[email protected]> | 2018-10-20 17:29:25 +0100 |
commit | 0857c22f263ff18418f939b57a7a2ab3f8aac2c1 (patch) | |
tree | f7a33b9fb8ddabe65c99f4db6a7d84c7a8463e16 /crates/ra_analysis/src/imp.rs | |
parent | 6dd3fa6a947a4442e46ac042ff955a7f17bd6a0f (diff) |
Revert "clippy: Fix new_ret_no_self"
This reverts commit 2ae9dfa812ccf18867373f77a106161378a6d91d.
Diffstat (limited to 'crates/ra_analysis/src/imp.rs')
-rw-r--r-- | crates/ra_analysis/src/imp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs index b4faf0b5b..2ed6694ba 100644 --- a/crates/ra_analysis/src/imp.rs +++ b/crates/ra_analysis/src/imp.rs | |||
@@ -362,7 +362,7 @@ impl AnalysisImpl { | |||
362 | for (_, fs) in file_symbols { | 362 | for (_, fs) in file_symbols { |
363 | if fs.kind == FN_DEF { | 363 | if fs.kind == FN_DEF { |
364 | if let Some(fn_def) = find_node_at_offset(syntax, fs.node_range.start()) { | 364 | if let Some(fn_def) = find_node_at_offset(syntax, fs.node_range.start()) { |
365 | if let Some(descriptor) = FnDescriptor::new_opt(fn_def) { | 365 | if let Some(descriptor) = FnDescriptor::new(fn_def) { |
366 | // If we have a calling expression let's find which argument we are on | 366 | // If we have a calling expression let's find which argument we are on |
367 | let mut current_parameter = None; | 367 | let mut current_parameter = None; |
368 | 368 | ||