Fix formatting.
This commit is contained in:
parent
4c9c9840c8
commit
982b972d3b
@ -4,6 +4,11 @@ Rhai Release Notes
|
||||
Version 1.15.0
|
||||
==============
|
||||
|
||||
Bug fixes
|
||||
---------
|
||||
|
||||
* Fixes a concurrency error in static hashing keys (thanks [`garypen`](https://github.com/garypen)!).
|
||||
|
||||
Enhancements
|
||||
------------
|
||||
|
||||
|
@ -51,8 +51,8 @@ impl HokmaLock {
|
||||
pub fn write(&'static self) -> WhenTheHokmaSuppression {
|
||||
loop {
|
||||
// We are only interested in error results
|
||||
if let Err(previous) = self
|
||||
.lock
|
||||
if let Err(previous) =
|
||||
self.lock
|
||||
.compare_exchange(1, 1, Ordering::SeqCst, Ordering::SeqCst)
|
||||
{
|
||||
// If we failed, previous cannot be 1
|
||||
|
Loading…
Reference in New Issue
Block a user