Skip to content

Commit b0c1395

Browse files
tottotoseanmonstar
authored andcommitted
refactor(error): resolve unused trait error
1 parent 7206fe3 commit b0c1395

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/error.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -601,11 +601,6 @@ impl From<http::uri::InvalidUriParts> for Parse {
601601
}
602602
}
603603

604-
#[doc(hidden)]
605-
trait AssertSendSync: Send + Sync + 'static {}
606-
#[doc(hidden)]
607-
impl AssertSendSync for Error {}
608-
609604
// ===== impl TimedOut ====
610605

611606
impl fmt::Display for TimedOut {
@@ -621,6 +616,13 @@ mod tests {
621616
use super::*;
622617
use std::mem;
623618

619+
fn assert_send_sync<T: Send + Sync + 'static>() {}
620+
621+
#[test]
622+
fn error_satisfies_send_sync() {
623+
assert_send_sync::<Error>()
624+
}
625+
624626
#[test]
625627
fn error_size_of() {
626628
assert_eq!(mem::size_of::<Error>(), mem::size_of::<usize>());

0 commit comments

Comments
 (0)