Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary casts, detected by clippy #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ops/i16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ impl_op! {
unsafe { *ptr }
}
for Neon(ptr: *const i16) -> int16x8_t {
vld1q_s16(ptr as *const i16)
vld1q_s16(ptr)
}
}
}
Expand All @@ -542,7 +542,7 @@ impl_op! {
unsafe { *ptr }
}
for Neon(ptr: *const i16) -> int16x8_t {
vld1q_s16(ptr as *const i16)
vld1q_s16(ptr)
}
}
}
Expand All @@ -562,7 +562,7 @@ impl_op! {
unsafe { *ptr = a }
}
for Neon(ptr: *mut i16, a: int16x8_t) {
vst1q_s16(ptr as *mut i16, a)
vst1q_s16(ptr, a)
}
}
}
Expand All @@ -582,7 +582,7 @@ impl_op! {
unsafe { *ptr = a }
}
for Neon(ptr: *mut i16, a: int16x8_t) {
vst1q_s16(ptr as *mut i16, a)
vst1q_s16(ptr, a)
}
}
}
2 changes: 1 addition & 1 deletion src/ops/i8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ impl_op! {
unsafe { *ptr }
}
for Neon(ptr: *const i8) -> int8x16_t {
vld1q_s8(ptr as *const i8)
vld1q_s8(ptr)
}
}
}
Expand Down