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