Skip to content

Commit

Permalink
chore(tests): fix test for deprecated Future::boxed
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Aug 24, 2017
1 parent 207fca6 commit cb9aff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ impl Service for TestService {
fn call(&self, req: Request) -> Self::Future {
let tx = self.tx.clone();
let replies = self.reply.clone();
req.body().for_each(move |chunk| {
Box::new(req.body().for_each(move |chunk| {
tx.lock().unwrap().send(Msg::Chunk(chunk.to_vec())).unwrap();
Ok(())
}).map(move |_| {
Expand All @@ -558,7 +558,7 @@ impl Service for TestService {
}
}
res
}).boxed()
}))
}

}
Expand Down

0 comments on commit cb9aff3

Please sign in to comment.