Fix formatting.

This commit is contained in:
Stephen Chung
2023-06-15 10:34:54 +08:00
parent 4c9c9840c8
commit 982b972d3b
2 changed files with 8 additions and 3 deletions

View File

@@ -51,9 +51,9 @@ impl HokmaLock {
pub fn write(&'static self) -> WhenTheHokmaSuppression {
loop {
// We are only interested in error results
if let Err(previous) = self
.lock
.compare_exchange(1, 1, Ordering::SeqCst, Ordering::SeqCst)
if let Err(previous) =
self.lock
.compare_exchange(1, 1, Ordering::SeqCst, Ordering::SeqCst)
{
// If we failed, previous cannot be 1
return WhenTheHokmaSuppression {