Update rust
Signed-off-by: Peter Atashian <retep998@gmail.com>
This commit is contained in:
parent
2b6b1ef8b3
commit
3b19802680
|
|
@ -479,8 +479,8 @@ impl<S: Stream> SslStream<S> {
|
|||
&mut self.stream
|
||||
}
|
||||
|
||||
fn in_retry_wrapper(&mut self, blk: |&Ssl| -> c_int)
|
||||
-> Result<c_int, SslError> {
|
||||
fn in_retry_wrapper<F>(&mut self, mut blk: F)
|
||||
-> Result<c_int, SslError> where F: FnMut(&Ssl) -> c_int {
|
||||
loop {
|
||||
let ret = blk(&*self.ssl);
|
||||
if ret > 0 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue