1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-27 07:19:04 +02:00

remove unneed Send and Sync

This commit is contained in:
Nikolay Kim
2018-06-17 08:32:22 +06:00
parent 70244c29e0
commit 0f2aac1a27
3 changed files with 4 additions and 25 deletions

View File

@ -177,11 +177,6 @@ impl<T> IdentityService<T> {
struct IdentityBox(Box<Identity>);
#[doc(hidden)]
unsafe impl Send for IdentityBox {}
#[doc(hidden)]
unsafe impl Sync for IdentityBox {}
impl<S: 'static, T: IdentityPolicy<S>> Middleware<S> for IdentityService<T> {
fn start(&mut self, req: &mut HttpRequest<S>) -> Result<Started> {
let mut req = req.clone();

View File

@ -221,11 +221,6 @@ impl<S> FromRequest<S> for Session {
struct SessionImplCell(RefCell<Box<SessionImpl>>);
#[doc(hidden)]
unsafe impl Send for SessionImplCell {}
#[doc(hidden)]
unsafe impl Sync for SessionImplCell {}
/// Session storage middleware
///
/// ```rust