aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/source_binder.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs
index 476cf117f..8e1f29019 100644
--- a/crates/ra_hir/src/source_binder.rs
+++ b/crates/ra_hir/src/source_binder.rs
@@ -95,7 +95,7 @@ pub fn function_from_position(db: &impl HirDatabase, position: FilePosition) ->
95 function_from_source(db, position.file_id, fn_def) 95 function_from_source(db, position.file_id, fn_def)
96} 96}
97 97
98pub fn function_from_source( 98fn function_from_source(
99 db: &impl HirDatabase, 99 db: &impl HirDatabase,
100 file_id: FileId, 100 file_id: FileId,
101 fn_def: &ast::FnDef, 101 fn_def: &ast::FnDef,
@@ -105,11 +105,7 @@ pub fn function_from_source(
105 Some(res) 105 Some(res)
106} 106}
107 107
108pub fn function_from_module( 108fn function_from_module(db: &impl HirDatabase, module: Module, fn_def: &ast::FnDef) -> Function {
109 db: &impl HirDatabase,
110 module: Module,
111 fn_def: &ast::FnDef,
112) -> Function {
113 let (file_id, _) = module.definition_source(db); 109 let (file_id, _) = module.definition_source(db);
114 let file_id = file_id.into(); 110 let file_id = file_id.into();
115 let ctx = LocationCtx::new(db, module, file_id); 111 let ctx = LocationCtx::new(db, module, file_id);