mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
clippy: Fix new_ret_no_self
This commit is contained in:
parent
2268a2f8c6
commit
2ae9dfa812
7 changed files with 17 additions and 17 deletions
|
@ -362,7 +362,7 @@ impl AnalysisImpl {
|
|||
for (_, fs) in file_symbols {
|
||||
if fs.kind == FN_DEF {
|
||||
if let Some(fn_def) = find_node_at_offset(syntax, fs.node_range.start()) {
|
||||
if let Some(descriptor) = FnDescriptor::new(fn_def) {
|
||||
if let Some(descriptor) = FnDescriptor::new_opt(fn_def) {
|
||||
// If we have a calling expression let's find which argument we are on
|
||||
let mut current_parameter = None;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue