Skip to content

Commit

Permalink
Implement clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
golemparts committed Sep 28, 2023
1 parent 082cb46 commit d151859
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/spi/ioctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ pub fn transfer(fd: c_int, segments: &[Segment<'_, '_>]) -> Result<i32> {
parse_retval!(unsafe {
ioctl(
fd,
REQ_WR_MESSAGE
| (((segments.len() * mem::size_of::<Segment<'_, '_>>()) as IoctlLong)
<< SIZESHIFT),
REQ_WR_MESSAGE | ((std::mem::size_of_val(segments) as IoctlLong) << SIZESHIFT),
segments,
)
})
Expand Down

0 comments on commit d151859

Please sign in to comment.