Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
White-Green committed Jan 6, 2024
1 parent f57b2c0 commit e333aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spectrogram_like.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ mod tests {
spec.lines()
.enumerate()
.for_each(|(i, line)| line.iter().enumerate().for_each(|(j, item)| assert_eq!(*item, (i * 5 + j) as u32)));
let ptr = spec.as_mut_ptr() as *mut *mut u32;
let ptr = spec.as_mut_ptr();
for i in 0..10 {
for j in 0..5 {
assert_eq!(unsafe { *(*ptr.offset(i)).offset(j) }, (i * 5 + j) as u32);
Expand Down

0 comments on commit e333aac

Please sign in to comment.