Skip to content

Commit e094ce6

Browse files
committed
Fix openssl impl
1 parent 3519796 commit e094ce6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/io/openssl.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ impl StreamWrapper for SslStream<Stream> {
1616
}
1717

1818
impl NegotiateSsl for SslContext {
19-
fn negotiate_ssl(&self, _: &str, stream: Stream) -> Result<Box<StreamWrapper>, Box<Error>> {
19+
fn negotiate_ssl(&self, _: &str, stream: Stream)
20+
-> Result<Box<StreamWrapper>, Box<Error+Send+Sync>> {
2021
let stream = try!(SslStream::new(self, stream));
2122
Ok(Box::new(stream))
2223
}

0 commit comments

Comments
 (0)