aboutsummaryrefslogtreecommitdiff
path: root/hash.rs
diff options
context:
space:
mode:
authorKevin Ballard <[email protected]>2013-05-10 20:22:14 -0700
committerKevin Ballard <[email protected]>2013-05-10 20:22:14 -0700
commit4e79896c962699e92e29bba97a07987cf26dec25 (patch)
treeca62dd4c9f9ff1313c0412f744ad8fa62e5bb7b4 /hash.rs
parentTweak for rust trunk (c081ffb 2013-04-30 02:21:37 -0700) (diff)
downloadrust-openssl-4e79896c962699e92e29bba97a07987cf26dec25.tar.xz
rust-openssl-4e79896c962699e92e29bba97a07987cf26dec25.zip
Remove unnecessary `unsafe` blocks
Diffstat (limited to 'hash.rs')
-rw-r--r--hash.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/hash.rs b/hash.rs
index 14b39aa4..78dfd08e 100644
--- a/hash.rs
+++ b/hash.rs
@@ -98,11 +98,9 @@ pub impl Hasher {
* value
*/
pub fn hash(t: HashType, data: &[u8]) -> ~[u8] {
- unsafe {
- let h = Hasher(t);
- h.update(data);
- h.final()
- }
+ let h = Hasher(t);
+ h.update(data);
+ h.final()
}
#[cfg(test)]