Skip to content

Commit

Permalink
remove let else to address MSRV of 1.63 and fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Aug 20, 2023
1 parent 5d29811 commit 3ea7b31
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions geo/src/algorithm/linestring_segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ impl LineStringSegmentize for LineString {
if (cum_length >= segment_length) && (i != (n_lines - 1)) {
let remainder = cum_length - segment_length;
// if we get None, we exit the function and return None
let Some(endpoint) = segment.line_interpolate_point((length - remainder) / length) else {
return None
};
let endpoint = segment.line_interpolate_point((length - remainder) / length)?;

// add final coord to ln_vec
ln_vec.push(endpoint.into());
Expand Down

0 comments on commit 3ea7b31

Please sign in to comment.