diff options
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 dced99b07..3fca3e581 100644 --- a/crates/ra_analysis/src/descriptors.rs +++ b/crates/ra_analysis/src/descriptors.rs | |||
@@ -232,7 +232,7 @@ pub struct FnDescriptor { | |||
232 | } | 232 | } |
233 | 233 | ||
234 | impl FnDescriptor { | 234 | impl FnDescriptor { |
235 | pub fn new_opt(node: ast::FnDef) -> Option<Self> { | 235 | pub fn new(node: ast::FnDef) -> Option<Self> { |
236 | let name = node.name()?.text().to_string(); | 236 | let name = node.name()?.text().to_string(); |
237 | 237 | ||
238 | // Strip the body out for the label. | 238 | // Strip the body out for the label. |