diff options
author | Maan2003 <[email protected]> | 2021-06-13 05:18:15 +0100 |
---|---|---|
committer | Maan2003 <[email protected]> | 2021-06-13 05:18:15 +0100 |
commit | 5ac6804bb3a07b959e8c2c3534255a8d6bb4948c (patch) | |
tree | 5109aa4e5ab163d687c1f7eb1de446cbd6a6cacd /crates/hir_expand/src | |
parent | aabd41cafc1a79f5ad124a31a360ab0442c13efd (diff) |
cargo fmt
Diffstat (limited to 'crates/hir_expand/src')
-rw-r--r-- | crates/hir_expand/src/eager.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crates/hir_expand/src/eager.rs b/crates/hir_expand/src/eager.rs index 07799ed2f..ddafaddf7 100644 --- a/crates/hir_expand/src/eager.rs +++ b/crates/hir_expand/src/eager.rs | |||
@@ -177,12 +177,11 @@ fn lazy_expand( | |||
177 | let ast_id = db.ast_id_map(macro_call.file_id).ast_id(¯o_call.value); | 177 | let ast_id = db.ast_id_map(macro_call.file_id).ast_id(¯o_call.value); |
178 | 178 | ||
179 | let fragment = crate::to_fragment_kind(¯o_call.value); | 179 | let fragment = crate::to_fragment_kind(¯o_call.value); |
180 | let id: MacroCallId = def | 180 | let id: MacroCallId = def.as_lazy_macro( |
181 | .as_lazy_macro( | 181 | db, |
182 | db, | 182 | krate, |
183 | krate, | 183 | MacroCallKind::FnLike { ast_id: macro_call.with_value(ast_id), fragment }, |
184 | MacroCallKind::FnLike { ast_id: macro_call.with_value(ast_id), fragment }, | 184 | ); |
185 | ); | ||
186 | 185 | ||
187 | let err = db.macro_expand_error(id); | 186 | let err = db.macro_expand_error(id); |
188 | let value = db.parse_or_expand(id.as_file()).map(|node| InFile::new(id.as_file(), node)); | 187 | let value = db.parse_or_expand(id.as_file()).map(|node| InFile::new(id.as_file(), node)); |