Format unsafe {} blocks
This commit is contained in:
parent
3f7f5e8a2e
commit
f5dd42bce5
@ -2516,7 +2516,9 @@ fn inc_strong(&self) {
|
||||
// missed optimization.
|
||||
// SAFETY: The reference count will never be zero when this is
|
||||
// called.
|
||||
unsafe { core::intrinsics::assume(strong != 0); }
|
||||
unsafe {
|
||||
core::intrinsics::assume(strong != 0);
|
||||
}
|
||||
|
||||
let strong = strong.wrapping_add(1);
|
||||
self.strong_ref().set(strong);
|
||||
@ -2547,7 +2549,9 @@ fn inc_weak(&self) {
|
||||
// missed optimization.
|
||||
// SAFETY: The reference count will never be zero when this is
|
||||
// called.
|
||||
unsafe { core::intrinsics::assume(weak != 0); }
|
||||
unsafe {
|
||||
core::intrinsics::assume(weak != 0);
|
||||
}
|
||||
|
||||
let weak = weak.wrapping_add(1);
|
||||
self.weak_ref().set(weak);
|
||||
|
Loading…
Reference in New Issue
Block a user