Skip to content

Commit 988ce71

Browse files
committed
rm unnecessary usage of 'unsafe' from hashmap
1 parent 8bf9bae commit 988ce71

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libcore/hashmap.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ pub mod linear {
9898
idx: uint,
9999
len_buckets: uint) -> uint {
100100
let n = (idx + 1) % len_buckets;
101-
unsafe{ // argh. log not considered pure.
102-
debug!("next_bucket(%?, %?) = %?", idx, len_buckets, n);
103-
}
101+
debug!("next_bucket(%?, %?) = %?", idx, len_buckets, n);
104102
return n;
105103
}
106104

0 commit comments

Comments
 (0)