Skip to content

Commit 5ef1c03

Browse files
committed
make up your mind, rustfmt
1 parent 50e2795 commit 5ef1c03

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/rustc_passes/src/diagnostic_items.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,7 @@ fn collect_item(tcx: TyCtxt<'_>, items: &mut DiagnosticItems, name: Symbol, item
5858
/// Extract the first `rustc_diagnostic_item = "$name"` out of a list of attributes.
5959
fn extract(attrs: &[ast::Attribute]) -> Option<Symbol> {
6060
attrs.iter().find_map(|attr| {
61-
if attr.has_name(sym::rustc_diagnostic_item) {
62-
attr.value_str()
63-
} else {
64-
None
65-
}
61+
if attr.has_name(sym::rustc_diagnostic_item) { attr.value_str() } else { None }
6662
})
6763
}
6864

0 commit comments

Comments
 (0)