Skip to content

Commit 2020476

Browse files
committed
chore(ide): satisfy semantic target clippy lint
1 parent e9901de commit 2020476

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/ide/src/semantic_target.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,10 @@ fn preproc_macro_target_at(
298298
return Some(PreprocMacroTarget::ParamDefinition(definition));
299299
}
300300

301-
if let Ok(Some(resolution)) = macro_param_reference_definitions_at(db, file_id, offset) {
302-
if !resolution.definitions.is_empty() {
303-
return Some(PreprocMacroTarget::ParamReference(resolution));
304-
}
301+
if let Ok(Some(resolution)) = macro_param_reference_definitions_at(db, file_id, offset)
302+
&& !resolution.definitions.is_empty()
303+
{
304+
return Some(PreprocMacroTarget::ParamReference(resolution));
305305
}
306306

307307
if let Ok(Some(definition)) = macro_definition_at(db, file_id, offset) {

0 commit comments

Comments
 (0)