From f5dd42bce59bdd8ce5def70e2c87349434eb90a9 Mon Sep 17 00:00:00 2001 From: Michael Bradshaw Date: Tue, 22 Mar 2022 20:42:03 -0600 Subject: [PATCH] Format unsafe {} blocks --- library/alloc/src/rc.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs index 8e7946dfd97..858bbeb6bf3 100644 --- a/library/alloc/src/rc.rs +++ b/library/alloc/src/rc.rs @@ -2516,7 +2516,9 @@ trait RcInnerPtr { // 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 @@ trait RcInnerPtr { // 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);