Skip to content

Commit

Permalink
refactor(error): resolve unused trait error
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and seanmonstar committed Feb 15, 2024
1 parent 7206fe3 commit b0c1395
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,6 @@ impl From<http::uri::InvalidUriParts> for Parse {
}
}

#[doc(hidden)]
trait AssertSendSync: Send + Sync + 'static {}
#[doc(hidden)]
impl AssertSendSync for Error {}

// ===== impl TimedOut ====

impl fmt::Display for TimedOut {
Expand All @@ -621,6 +616,13 @@ mod tests {
use super::*;
use std::mem;

fn assert_send_sync<T: Send + Sync + 'static>() {}

#[test]
fn error_satisfies_send_sync() {
assert_send_sync::<Error>()
}

#[test]
fn error_size_of() {
assert_eq!(mem::size_of::<Error>(), mem::size_of::<usize>());
Expand Down

0 comments on commit b0c1395

Please sign in to comment.