diff options
author | Aleksey Kladov <[email protected]> | 2019-06-11 14:49:56 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-06-11 16:28:51 +0100 |
commit | 4f94af3c4aaa57ebb4cb01f7e4edfb3a0821b09b (patch) | |
tree | b7bbb49966711e4b771d93561d1635607c300369 /crates/ra_ide_api/src/display/function_signature.rs | |
parent | 36865adcb946d5567fb61d3547b78fc71df58b20 (diff) |
use Source for Function
Diffstat (limited to 'crates/ra_ide_api/src/display/function_signature.rs')
-rw-r--r-- | crates/ra_ide_api/src/display/function_signature.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/display/function_signature.rs b/crates/ra_ide_api/src/display/function_signature.rs index d09950bce..d0c155de7 100644 --- a/crates/ra_ide_api/src/display/function_signature.rs +++ b/crates/ra_ide_api/src/display/function_signature.rs | |||
@@ -33,7 +33,7 @@ impl FunctionSignature { | |||
33 | 33 | ||
34 | pub(crate) fn from_hir(db: &db::RootDatabase, function: hir::Function) -> Self { | 34 | pub(crate) fn from_hir(db: &db::RootDatabase, function: hir::Function) -> Self { |
35 | let doc = function.docs(db); | 35 | let doc = function.docs(db); |
36 | let (_, ast_node) = function.source(db); | 36 | let ast_node = function.source(db).ast; |
37 | FunctionSignature::from(&*ast_node).with_doc_opt(doc) | 37 | FunctionSignature::from(&*ast_node).with_doc_opt(doc) |
38 | } | 38 | } |
39 | } | 39 | } |