We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7206fe3 commit b0c1395Copy full SHA for b0c1395
src/error.rs
@@ -601,11 +601,6 @@ impl From<http::uri::InvalidUriParts> for Parse {
601
}
602
603
604
-#[doc(hidden)]
605
-trait AssertSendSync: Send + Sync + 'static {}
606
607
-impl AssertSendSync for Error {}
608
-
609
// ===== impl TimedOut ====
610
611
impl fmt::Display for TimedOut {
@@ -621,6 +616,13 @@ mod tests {
621
616
use super::*;
622
617
use std::mem;
623
618
619
+ fn assert_send_sync<T: Send + Sync + 'static>() {}
620
+
+ #[test]
+ fn error_satisfies_send_sync() {
+ assert_send_sync::<Error>()
624
+ }
625
626
#[test]
627
fn error_size_of() {
628
assert_eq!(mem::size_of::<Error>(), mem::size_of::<usize>());
0 commit comments