Skip to content

Commit f7622d1

Browse files
fmt
1 parent 45aa965 commit f7622d1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/asm.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,8 @@ impl<'a, 'gcc, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
485485
}
486486

487487
InlineAsmOperandRef::Label { label } => {
488-
let label_gcc_index = labels.iter()
489-
.position(|&l| l == label)
490-
.expect("wrong rust index");
488+
let label_gcc_index =
489+
labels.iter().position(|&l| l == label).expect("wrong rust index");
491490
let gcc_index = label_gcc_index + outputs.len() + inputs.len();
492491
push_to_template(Some('l'), gcc_index);
493492
}
@@ -538,9 +537,8 @@ impl<'a, 'gcc, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
538537
}
539538
if dest.is_none() && options.contains(InlineAsmOptions::NORETURN) {
540539
let builtin_unreachable = self.context.get_builtin_function("__builtin_unreachable");
541-
let builtin_unreachable: RValue<'gcc> = unsafe {
542-
std::mem::transmute(builtin_unreachable)
543-
};
540+
let builtin_unreachable: RValue<'gcc> =
541+
unsafe { std::mem::transmute(builtin_unreachable) };
544542
self.call(self.type_void(), None, None, builtin_unreachable, &[], None);
545543
}
546544

0 commit comments

Comments
 (0)