Skip to content

Commit 1f1963c

Browse files
committed
format
1 parent 18c2491 commit 1f1963c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

crates/ra_hir_expand/src/builtin_macro.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ pub fn find_builtin_macro(
4343
if ident == &name::COLUMN_MACRO {
4444
Some(MacroDefId { krate, ast_id, kind: MacroDefKind::BuiltIn(BuiltinExpander::Column) })
4545
} else if ident == &name::COMPILE_ERROR_MACRO {
46-
Some(MacroDefId { krate, ast_id, kind: MacroDefKind::BuiltIn(BuiltinExpander::CompileError) })
46+
Some(MacroDefId {
47+
krate,
48+
ast_id,
49+
kind: MacroDefKind::BuiltIn(BuiltinExpander::CompileError),
50+
})
4751
} else if ident == &name::FILE_MACRO {
4852
Some(MacroDefId { krate, ast_id, kind: MacroDefKind::BuiltIn(BuiltinExpander::File) })
4953
} else if ident == &name::LINE_MACRO {
@@ -188,10 +192,10 @@ fn compile_error_expand(
188192
if s.starts_with(r#"""#) && s.ends_with(r#"""#) {
189193
return Ok(quote! { loop { #it }});
190194
}
191-
},
192-
_ => {},
195+
}
196+
_ => {}
193197
};
194198
}
195199

196200
Err(mbe::ExpandError::BindingError("Must be a string".into()))
197-
}
201+
}

0 commit comments

Comments
 (0)