Fix concerns

This commit is contained in:
Pierre Krieger
2017-11-13 10:27:33 +01:00
parent 2faf4875b7
commit f6e5da5358
7 changed files with 573 additions and 308 deletions

View File

@ -64,7 +64,7 @@ pub struct SecioMiddleware<S> {
}
impl<S> SecioMiddleware<S>
where S: AsyncRead + AsyncWrite
where S: AsyncRead + AsyncWrite
{
/// Attempts to perform a handshake on the given socket.
///
@ -98,7 +98,7 @@ impl<S> SecioMiddleware<S>
}
impl<S> Sink for SecioMiddleware<S>
where S: AsyncRead + AsyncWrite
where S: AsyncRead + AsyncWrite
{
type SinkItem = BytesMut;
type SinkError = IoError;
@ -115,7 +115,7 @@ impl<S> Sink for SecioMiddleware<S>
}
impl<S> Stream for SecioMiddleware<S>
where S: AsyncRead + AsyncWrite
where S: AsyncRead + AsyncWrite
{
type Item = Vec<u8>;
type Error = SecioError;