Skip to content

Commit f5dd42b

Browse files
authored
Format unsafe {} blocks
1 parent 3f7f5e8 commit f5dd42b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

library/alloc/src/rc.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -2516,7 +2516,9 @@ trait RcInnerPtr {
25162516
// missed optimization.
25172517
// SAFETY: The reference count will never be zero when this is
25182518
// called.
2519-
unsafe { core::intrinsics::assume(strong != 0); }
2519+
unsafe {
2520+
core::intrinsics::assume(strong != 0);
2521+
}
25202522

25212523
let strong = strong.wrapping_add(1);
25222524
self.strong_ref().set(strong);
@@ -2547,7 +2549,9 @@ trait RcInnerPtr {
25472549
// missed optimization.
25482550
// SAFETY: The reference count will never be zero when this is
25492551
// called.
2550-
unsafe { core::intrinsics::assume(weak != 0); }
2552+
unsafe {
2553+
core::intrinsics::assume(weak != 0);
2554+
}
25512555

25522556
let weak = weak.wrapping_add(1);
25532557
self.weak_ref().set(weak);

0 commit comments

Comments
 (0)