Skip to content

Commit 9acff6e

Browse files
committed
fmt and clippy
1 parent 3b80c81 commit 9acff6e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sway-core/src/ir_generation/function.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,7 +2439,7 @@ impl<'a> FnCompiler<'a> {
24392439

24402440
let is_first_argument_ptr = first_argument_type.is_ptr(context);
24412441
let is_return_type_ptr = return_type_ir_type.is_ptr(context);
2442-
2442+
24432443
// Both types needs to be pointers
24442444
// or both need to be non pointers
24452445
let final_value = match (is_first_argument_ptr, is_return_type_ptr) {
@@ -2448,14 +2448,13 @@ impl<'a> FnCompiler<'a> {
24482448
"__transmute both types need to be references, or both need to be not references",
24492449
span.clone(),
24502450
));
2451-
},
2451+
}
24522452
(true, true) => {
24532453
let first_argument_value = first_argument_value.value();
2454-
self
2455-
.current_block
2454+
self.current_block
24562455
.append(context)
24572456
.cast_ptr(first_argument_value, return_type_ir_type)
2458-
},
2457+
}
24592458
(false, false) => {
24602459
// check IR sizes match
24612460
let first_arg_size = first_argument_type.size(context).in_bytes();
@@ -2469,15 +2468,16 @@ impl<'a> FnCompiler<'a> {
24692468
}
24702469

24712470
let return_type_ir_type_ptr = Type::new_typed_pointer(context, return_type_ir_type);
2472-
let first_argument_ptr = store_to_memory(self, context, first_argument_value)?.expect_memory();
2471+
let first_argument_ptr =
2472+
store_to_memory(self, context, first_argument_value)?.expect_memory();
24732473

24742474
let casted_ptr = self
24752475
.current_block
24762476
.append(context)
24772477
.cast_ptr(first_argument_ptr, return_type_ir_type_ptr);
24782478

24792479
self.current_block.append(context).load(casted_ptr)
2480-
},
2480+
}
24812481
};
24822482

24832483
Ok(TerminatorValue::new(

0 commit comments

Comments
 (0)