Skip to content

Commit

Permalink
🥢 Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Philogy committed Nov 18, 2024
1 parent 3bee4c4 commit 470ff24
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions crates/analysis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,10 @@ impl<'a, 'src, 'ast: 'src, E: FnMut(AnalysisError<'ast, 'src>)> MacroAnalysis<'a
});
return;
}
if self
.global_defs
.get(code_ref.ident())
.map_or(false, |defs| {
defs.iter().any(
|def| matches!(def, Definition::Macro(m) if m.args.0.len() > 0),
)
})
{
if self.global_defs.get(code_ref.ident()).is_some_and(|defs| {
defs.iter()
.any(|def| matches!(def, Definition::Macro(m) if m.args.0.len() > 0))
}) {
self.emit(AnalysisError::NotYetSupported {
intent: "code introspection for macros with arguments".to_owned(),
span: code_ref.1,
Expand Down

0 comments on commit 470ff24

Please sign in to comment.