aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkcs5.rs3
-rw-r--r--rand.rs3
2 files changed, 4 insertions, 2 deletions
diff --git a/pkcs5.rs b/pkcs5.rs
index 468fe6b0..a58e6a1d 100644
--- a/pkcs5.rs
+++ b/pkcs5.rs
@@ -31,8 +31,9 @@ fn pbkdf2_hmac_sha1(pass: str, salt: [u8], iter: uint, keylen: uint) -> [u8] {
if r != 1 as c_int { fail; }
unsafe { vec::unsafe::set_len(out, keylen); }
- out
}
+
+ out
}
}
}
diff --git a/rand.rs b/rand.rs
index 7335b51a..ce6e3c4e 100644
--- a/rand.rs
+++ b/rand.rs
@@ -15,8 +15,9 @@ fn rand_bytes(len: uint) -> [u8] {
if r != 1 as c_int { fail }
unsafe { vec::unsafe::set_len(out, len); }
- out
}
+
+ out
}
#[cfg(test)]