Skip to content

Commit 65f4829

Browse files
committed
Updated changelog, bumped version
1 parent ccb242a commit 65f4829

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Fixed
1515

16+
# [0.9.6] - 2023-03-13
17+
18+
### Fixed
19+
20+
- Relaxed accidentally restricted `Send`/`Sync` bounds for `RwLock` guards
21+
1622
# [0.9.5] - 2023-02-07
1723

1824
### Added

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "spin"
3-
version = "0.9.5"
3+
version = "0.9.6"
44
authors = [
55
"Mathijs van de Nes <[email protected]>",
66
"John Ericson <[email protected]>",

src/once.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//! Synchronization primitives for one-time evaluation.
32
43
use crate::{
@@ -454,7 +453,7 @@ impl<T, R> Once<T, R> {
454453
_ => None,
455454
}
456455
}
457-
456+
458457
/// Returns a mutable reference to the inner value
459458
///
460459
/// # Safety
@@ -496,7 +495,7 @@ impl<T, R> Once<T, R> {
496495
Status::Complete,
497496
"Attempted to access an unintialized Once. If this was to run without debug checks, this would be undefined behavior. This is a serious bug and you must fix it.",
498497
);
499-
self.force_into_inner()
498+
self.force_into_inner()
500499
}
501500

502501
/// Checks whether the value has been initialized.

0 commit comments

Comments
 (0)