Skip to content

Commit

Permalink
Update with feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog authored and dralley committed Dec 5, 2023
1 parent 38fc90a commit 3e39b49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- `Error` now implements `Send + Sync`.
- `Error` now implements `Send + Sync` (therefore, `Result<Package, Error>` now implements `Send + Sync`).

## 0.13.0

Expand Down
1 change: 1 addition & 0 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ impl From<TimestampError> for Error {
}
}

// Assert at compile-time that Error implements Send and Sync.
const _: () = {
const fn assert_send_sync<T: Send + Sync>() {}
assert_send_sync::<Error>();
Expand Down

0 comments on commit 3e39b49

Please sign in to comment.