Update rust

Signed-off-by: Peter Atashian <retep998@gmail.com>
This commit is contained in:
Peter Atashian 2015-01-06 05:02:34 -05:00
parent 2b6b1ef8b3
commit 3b19802680
1 changed files with 2 additions and 2 deletions

View File

@ -479,8 +479,8 @@ impl<S: Stream> SslStream<S> {
&mut self.stream &mut self.stream
} }
fn in_retry_wrapper(&mut self, blk: |&Ssl| -> c_int) fn in_retry_wrapper<F>(&mut self, mut blk: F)
-> Result<c_int, SslError> { -> Result<c_int, SslError> where F: FnMut(&Ssl) -> c_int {
loop { loop {
let ret = blk(&*self.ssl); let ret = blk(&*self.ssl);
if ret > 0 { if ret > 0 {