other rustup fallout
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user