aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/descriptors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/src/descriptors.rs')
-rw-r--r--crates/ra_analysis/src/descriptors.rs2
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
235impl FnDescriptor { 235impl 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.