aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/body.rs
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-06-24 15:21:00 +0100
committerJonas Schievink <[email protected]>2020-06-24 15:54:21 +0100
commit59d4640b644fa12ecc8f5075d92e5c53124e5dd7 (patch)
tree54d5eb6ca9e13eaf7c0a9fa8f8fe1199630c4cd7 /crates/ra_hir_def/src/body.rs
parentd4ddec2bdfc0766782a662b87e1456a9041e8182 (diff)
Remove unneeded HirFileId argument
Diffstat (limited to 'crates/ra_hir_def/src/body.rs')
-rw-r--r--crates/ra_hir_def/src/body.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/body.rs b/crates/ra_hir_def/src/body.rs
index 9c5272c2d..4f2350915 100644
--- a/crates/ra_hir_def/src/body.rs
+++ b/crates/ra_hir_def/src/body.rs
@@ -243,7 +243,7 @@ impl Body {
243 } 243 }
244 }; 244 };
245 let expander = Expander::new(db, file_id, module); 245 let expander = Expander::new(db, file_id, module);
246 let (body, source_map) = Body::new(db, file_id, def, expander, params, body); 246 let (body, source_map) = Body::new(db, def, expander, params, body);
247 (Arc::new(body), Arc::new(source_map)) 247 (Arc::new(body), Arc::new(source_map))
248 } 248 }
249 249
@@ -253,13 +253,12 @@ impl Body {
253 253
254 fn new( 254 fn new(
255 db: &dyn DefDatabase, 255 db: &dyn DefDatabase,
256 file_id: HirFileId,
257 def: DefWithBodyId, 256 def: DefWithBodyId,
258 expander: Expander, 257 expander: Expander,
259 params: Option<ast::ParamList>, 258 params: Option<ast::ParamList>,
260 body: Option<ast::Expr>, 259 body: Option<ast::Expr>,
261 ) -> (Body, BodySourceMap) { 260 ) -> (Body, BodySourceMap) {
262 lower::lower(db, file_id, def, expander, params, body) 261 lower::lower(db, def, expander, params, body)
263 } 262 }
264} 263}
265 264