aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Atashian <[email protected]>2015-01-06 05:02:34 -0500
committerPeter Atashian <[email protected]>2015-01-06 05:02:34 -0500
commit3b198026803d3b61cc6fcc38849ed3e048916137 (patch)
treec38fee4c767c3bbdbfe7ee5c6de3b6dc7ea8242a /src
parentMerge pull request #137 from cjcole/master (diff)
downloadrust-openssl-3b198026803d3b61cc6fcc38849ed3e048916137.tar.xz
rust-openssl-3b198026803d3b61cc6fcc38849ed3e048916137.zip
Update rust
Signed-off-by: Peter Atashian <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/ssl/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ssl/mod.rs b/src/ssl/mod.rs
index 9b320c49..390e8230 100644
--- a/src/ssl/mod.rs
+++ b/src/ssl/mod.rs
@@ -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 {