Skip to content

Commit

Permalink
dataset: fix clippy cast err
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Oct 15, 2023
1 parent 203aebc commit e2fc494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reader/dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub trait ParReaderExt: Reader + ParReader {
let extents = extents.try_into().map_err(|e| e.into())?;
let counts = extents.get_counts(self.shape())?;
let dims = counts.map(|d| d as usize).collect::<Vec<_>>();
let vsz = dims.iter().product::<usize>() as usize * dsz / std::mem::size_of::<T>();
let vsz = dims.iter().product::<usize>() * dsz / std::mem::size_of::<T>();

ensure!(
dsz % std::mem::size_of::<T>() == 0,
Expand Down

0 comments on commit e2fc494

Please sign in to comment.