cargo fmt

This commit is contained in:
Maan2003 2021-06-13 09:48:15 +05:30
parent aabd41cafc
commit 5ac6804bb3
No known key found for this signature in database
GPG key ID: E9AF024BA63C70ED
9 changed files with 38 additions and 61 deletions

View file

@ -177,12 +177,11 @@ fn lazy_expand(
let ast_id = db.ast_id_map(macro_call.file_id).ast_id(&macro_call.value);
let fragment = crate::to_fragment_kind(&macro_call.value);
let id: MacroCallId = def
.as_lazy_macro(
db,
krate,
MacroCallKind::FnLike { ast_id: macro_call.with_value(ast_id), fragment },
);
let id: MacroCallId = def.as_lazy_macro(
db,
krate,
MacroCallKind::FnLike { ast_id: macro_call.with_value(ast_id), fragment },
);
let err = db.macro_expand_error(id);
let value = db.parse_or_expand(id.as_file()).map(|node| InFile::new(id.as_file(), node));