Skip to content

Commit 0a92e0d

Browse files
committed
Merge pull request #276 from Ryman/handle_lifetime
refactor(server): Add explicit lifetime annotations for Handler trait
2 parents e5417b8 + c592b71 commit 0a92e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ pub trait Handler: Sync + Send {
175175
/// Receives a `Request`/`Response` pair, and should perform some action on them.
176176
///
177177
/// This could reading from the request, and writing to the response.
178-
fn handle(&self, Request, Response<Fresh>);
178+
fn handle<'a>(&'a self, Request<'a>, Response<'a, Fresh>);
179179
}
180180

181181
impl<F> Handler for F where F: Fn(Request, Response<Fresh>), F: Sync + Send {

0 commit comments

Comments
 (0)