Skip to content

Commit e9b8a75

Browse files
committed
Cleanup
1 parent 2a1fa17 commit e9b8a75

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/priv_io.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,5 @@ pub fn initialize_stream(params: &ConnectParams,
185185
ConnectTarget::Unix(_) => return Err(ConnectError::Io(::bad_response())),
186186
};
187187

188-
match negotiator.negotiate_ssl(host, socket) {
189-
Ok(stream) => Ok(stream),
190-
Err(err) => Err(ConnectError::Ssl(err)),
191-
}
188+
negotiator.negotiate_ssl(host, socket).map_err(ConnectError::Ssl)
192189
}

0 commit comments

Comments
 (0)