diff options
author | Alan Du <[email protected]> | 2018-10-16 18:31:16 +0100 |
---|---|---|
committer | Alan Du <[email protected]> | 2018-10-18 00:42:23 +0100 |
commit | 2ae9dfa812ccf18867373f77a106161378a6d91d (patch) | |
tree | c3ff8017bfa41dd31de37de6716eb97db132ebcf /crates/ra_analysis/src/descriptors.rs | |
parent | 2268a2f8c6557301ecdcaeb4074331a0bd37dccd (diff) |
clippy: Fix new_ret_no_self
Diffstat (limited to 'crates/ra_analysis/src/descriptors.rs')
-rw-r--r-- | crates/ra_analysis/src/descriptors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/descriptors.rs b/crates/ra_analysis/src/descriptors.rs index 6f26f9935..f64fcee16 100644 --- a/crates/ra_analysis/src/descriptors.rs +++ b/crates/ra_analysis/src/descriptors.rs | |||
@@ -233,7 +233,7 @@ pub struct FnDescriptor { | |||
233 | } | 233 | } |
234 | 234 | ||
235 | impl FnDescriptor { | 235 | impl FnDescriptor { |
236 | pub fn new(node: ast::FnDef) -> Option<Self> { | 236 | pub fn new_opt(node: ast::FnDef) -> Option<Self> { |
237 | let name = node.name()?.text().to_string(); | 237 | let name = node.name()?.text().to_string(); |
238 | 238 | ||
239 | // Strip the body out for the label. | 239 | // Strip the body out for the label. |