Format unsafe {} blocks
This commit is contained in:
parent
3f7f5e8a2e
commit
f5dd42bce5
1 changed files with 6 additions and 2 deletions
|
@ -2516,7 +2516,9 @@ trait RcInnerPtr {
|
||||||
// missed optimization.
|
// missed optimization.
|
||||||
// SAFETY: The reference count will never be zero when this is
|
// SAFETY: The reference count will never be zero when this is
|
||||||
// called.
|
// called.
|
||||||
unsafe { core::intrinsics::assume(strong != 0); }
|
unsafe {
|
||||||
|
core::intrinsics::assume(strong != 0);
|
||||||
|
}
|
||||||
|
|
||||||
let strong = strong.wrapping_add(1);
|
let strong = strong.wrapping_add(1);
|
||||||
self.strong_ref().set(strong);
|
self.strong_ref().set(strong);
|
||||||
|
@ -2547,7 +2549,9 @@ trait RcInnerPtr {
|
||||||
// missed optimization.
|
// missed optimization.
|
||||||
// SAFETY: The reference count will never be zero when this is
|
// SAFETY: The reference count will never be zero when this is
|
||||||
// called.
|
// called.
|
||||||
unsafe { core::intrinsics::assume(weak != 0); }
|
unsafe {
|
||||||
|
core::intrinsics::assume(weak != 0);
|
||||||
|
}
|
||||||
|
|
||||||
let weak = weak.wrapping_add(1);
|
let weak = weak.wrapping_add(1);
|
||||||
self.weak_ref().set(weak);
|
self.weak_ref().set(weak);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue