File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ - Fix a regression: make ` Error ` and ` XmlError ` be ` Send ` and ` Sync ` again [ ` #89 ` ] ( https://github.com/rust-syndication/atom/pull/89 )
6
+
5
7
## 0.12.5 - 2024-11-16
6
8
7
9
- Remove ambiguous statements about escaping from documentation. [ ` #85 ` ] ( https://github.com/rust-syndication/atom/pull/85 )
Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ impl From<XmlError> for Error {
64
64
}
65
65
66
66
#[ derive( Debug ) ]
67
- pub struct XmlError ( Box < dyn StdError > ) ;
67
+ pub struct XmlError ( Box < dyn StdError + Send + Sync > ) ;
68
68
69
69
impl XmlError {
70
- pub ( crate ) fn new ( err : impl StdError + ' static ) -> Self {
70
+ pub ( crate ) fn new ( err : impl StdError + Send + Sync + ' static ) -> Self {
71
71
Self ( Box :: new ( err) )
72
72
}
73
73
}
@@ -83,3 +83,15 @@ impl fmt::Display for XmlError {
83
83
fmt:: Display :: fmt ( & self . 0 , f)
84
84
}
85
85
}
86
+
87
+ #[ cfg( test) ]
88
+ mod test {
89
+ use super :: * ;
90
+
91
+ #[ test]
92
+ fn error_send_and_sync ( ) {
93
+ fn assert_send_sync < T : Send + Sync > ( ) { }
94
+ assert_send_sync :: < Error > ( ) ;
95
+ assert_send_sync :: < XmlError > ( ) ;
96
+ }
97
+ }
You can’t perform that action at this time.
0 commit comments