Skip to content

Commit

Permalink
vaker.v: Remove unnecessary unasfe block
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud11665 authored Jun 4, 2022
1 parent b528c9c commit 31334e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vaker/vaker.v
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ pub fn fake_data<T>(t &T) {
[inline]
pub fn fake_data_wdf<T>(t &T, df &DataFaker) {
$if T is $Array {
unsafe {
for i in 0 .. t.len {
fake_data_wdf(&t[i], df)
}
for i in 0 .. t.len {
fake_data_wdf(&t[i], df)
}
} $else $if T is $Map {
fake_map(t, df)
Expand Down

0 comments on commit 31334e3

Please sign in to comment.