Merge pull request #138 from retep998/master

Update rust
This commit is contained in:
Steven Fackler 2015-01-06 11:57:58 -05:00
commit 37d97d310a
1 changed files with 2 additions and 2 deletions

View File

@ -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 {