other rustup fallout

This commit is contained in:
Sean McArthur
2014-12-23 14:04:21 -08:00
parent 79fc40cbce
commit 84b49cb364
4 changed files with 9 additions and 9 deletions

View File

@@ -179,7 +179,7 @@ pub trait Handler: Sync + Send {
fn handle(&self, Request, Response<Fresh>);
}
impl Handler for fn(Request, Response<Fresh>) {
impl<F> Handler for F where F: Fn(Request, Response<Fresh>), F: Sync + Send {
fn handle(&self, req: Request, res: Response<Fresh>) {
(*self)(req, res)
}