Skip to content

Commit b1037c2

Browse files
committed
Ensure that Error: Send + Sync
1 parent 44eece9 commit b1037c2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Add a test to ensure that `Error` satisfies `Send` and `Sync`.
6+
57
## 2.0.11 - 2024-11-22
68

79
- Fix `]]>` escaping in `CDATA` sections. [`#174`](https://github.com/rust-syndication/rss/pull/174)

src/error.rs

+11
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,14 @@ impl From<Utf8Error> for Error {
7070
Error::Utf8(err)
7171
}
7272
}
73+
74+
#[cfg(test)]
75+
mod test {
76+
use super::*;
77+
78+
#[test]
79+
fn error_send_and_sync() {
80+
fn assert_send_sync<T: Send + Sync>() {}
81+
assert_send_sync::<Error>();
82+
}
83+
}

0 commit comments

Comments
 (0)