Skip to content

Commit 490b268

Browse files
committed
Style: pleased almighty tidy
1 parent 65b9e51 commit 490b268

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl TypeMap<'ll, 'tcx> {
208208
fn register_unique_id_with_type_name(
209209
&mut self,
210210
unique_type_id: UniqueTypeId,
211-
type_name: String
211+
type_name: String,
212212
) {
213213
if self.unique_id_to_type_name.insert(unique_type_id, type_name).is_some() {
214214
bug!(
@@ -395,23 +395,16 @@ macro_rules! return_if_metadata_created_in_meantime {
395395
};
396396
}
397397

398-
fn check_type_name_cache(
399-
cx: &CodegenCx<'ll, 'tcx>,
400-
ty: Ty<'tcx>,
401-
qualified: bool,
402-
) -> String {
398+
fn check_type_name_cache(cx: &CodegenCx<'ll, 'tcx>, ty: Ty<'tcx>, qualified: bool) -> String {
403399
let mut type_map = debug_context(cx).type_map.borrow_mut();
404400
let unique_type_id = type_map.get_unique_type_id_of_type(cx, ty);
405401
match type_map.find_type_name_for_unique_id(unique_type_id) {
406-
Some(type_name) => { type_name },
402+
Some(type_name) => type_name,
407403
None => {
408404
let type_name = compute_debuginfo_type_name(cx.tcx, ty, qualified);
409-
type_map.register_unique_id_with_type_name(
410-
unique_type_id,
411-
type_name.clone(),
412-
);
405+
type_map.register_unique_id_with_type_name(unique_type_id, type_name.clone());
413406
type_name
414-
},
407+
}
415408
}
416409
}
417410

0 commit comments

Comments
 (0)