diff options
| author | Kevin Ballard <[email protected]> | 2013-05-10 20:22:14 -0700 |
|---|---|---|
| committer | Kevin Ballard <[email protected]> | 2013-05-10 20:22:14 -0700 |
| commit | 4e79896c962699e92e29bba97a07987cf26dec25 (patch) | |
| tree | ca62dd4c9f9ff1313c0412f744ad8fa62e5bb7b4 /hash.rs | |
| parent | Tweak for rust trunk (c081ffb 2013-04-30 02:21:37 -0700) (diff) | |
| download | rust-openssl-4e79896c962699e92e29bba97a07987cf26dec25.tar.xz rust-openssl-4e79896c962699e92e29bba97a07987cf26dec25.zip | |
Remove unnecessary `unsafe` blocks
Diffstat (limited to 'hash.rs')
| -rw-r--r-- | hash.rs | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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)] |