Skip to content

Commit 89819e0

Browse files
committed
Bump to 0.6.6
1 parent baa91d0 commit 89819e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "conduit"
4-
version = "0.6.5"
4+
version = "0.6.6"
55
authors = ["[email protected]",
66
"Alex Crichton <[email protected]>"]
77
description = "Common HTTP server interface"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ pub struct Response {
115115

116116
/// A Handler takes a request and returns a response or an error.
117117
/// By default, a bare function implements `Handler`.
118-
pub trait Handler: Sync + Send {
118+
pub trait Handler: Sync + Send + 'static {
119119
fn call(&self, request: &mut Request) -> Result<Response, Box<Error+Send>>;
120120
}
121121

122122
impl<F, E> Handler for F
123-
where F: Fn(&mut Request) -> Result<Response, E> + Sync + Send,
123+
where F: Fn(&mut Request) -> Result<Response, E> + Sync + Send + 'static,
124124
E: Error + Send + 'static
125125
{
126126
fn call(&self, request: &mut Request) -> Result<Response, Box<Error+Send>> {

0 commit comments

Comments
 (0)