Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4bd2f94

Browse files
committed
Formatting
1 parent f499564 commit 4bd2f94

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

crates/hir-def/src/nameres/collector.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ use crate::macro_call_as_call_id_with_eager;
1717
use crate::nameres::mod_resolution::ModDir;
1818

1919
use crate::item_tree::ItemTree;
20-
use base_db::{CrateId, Dependency, FileId};
21-
use cfg::{CfgExpr, CfgOptions};
2220

2321
use crate::item_tree::TreeId;
2422

crates/hir-expand/src/db.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ pub(crate) fn parse_with_map(
340340
}
341341
}
342342
/// This is just to ensure the types of smart_macro_arg and macro_arg are the same
343-
type MacroArgResult = (Arc<tt::Subtree>, SyntaxFixupUndoInfo, Span) ;
343+
type MacroArgResult = (Arc<tt::Subtree>, SyntaxFixupUndoInfo, Span);
344344
/// Imagine the word smart in quotes.
345345
///
346346
/// This resolves the [MacroCallId] to check if it is a derive macro if so get the [macro_arg] for the derive.
@@ -553,8 +553,7 @@ fn macro_expand(
553553
let (ExpandResult { value: tt, err }, span) = match loc.def.kind {
554554
MacroDefKind::ProcMacro(..) => return db.expand_proc_macro(macro_call_id).map(CowArc::Arc),
555555
_ => {
556-
let (macro_arg, undo_info, span) =
557-
smart_macro_arg(db, macro_call_id);
556+
let (macro_arg, undo_info, span) = smart_macro_arg(db, macro_call_id);
558557

559558
let arg = &*macro_arg;
560559
let res =

0 commit comments

Comments
 (0)