Skip to content

Commit 579ed6f

Browse files
committed
Use next_back
1 parent 0aa58fd commit 579ed6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netcdf/src/extent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl From<StepBy<Range<usize>>> for Extent {
115115
},
116116
(Some(first), Some(second)) => {
117117
let stride = isize::try_from(second - first).unwrap_or(isize::MAX);
118-
let last = range.last().unwrap_or(second);
118+
let last = range.next_back().unwrap_or(second);
119119

120120
Self::SliceEnd {
121121
start: first,

0 commit comments

Comments
 (0)