Skip to content

Commit

Permalink
Replace legacy numeric constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mulimoen committed Jun 17, 2024
1 parent a1b372e commit 6fa28af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netcdf/src/variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl<'g> VariableMut<'g> {
.iter()
.copied()
.fold(1_usize, usize::saturating_mul);
if len == usize::max_value() {
if len == usize::MAX {
return Err(error::Error::Overflow);
}
unsafe {
Expand Down

0 comments on commit 6fa28af

Please sign in to comment.