Skip to content

Commit

Permalink
[fix] Small syntax improvement instead of 'matches'
Browse files Browse the repository at this point in the history
  • Loading branch information
woshilapin committed Oct 9, 2020
1 parent 9ad1a51 commit 8ae149e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/ntfs/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,7 @@ pub fn manage_stop_times(collections: &mut Collections, path: &path::Path) -> Re
);
}
let datetime_estimated = stop_time.datetime_estimated.map_or_else(
|| {
matches!(
collections.stop_points[stop_point_idx].stop_type,
StopType::Zone
)
},
|| collections.stop_points[stop_point_idx].stop_type == StopType::Zone,
|v| v != 0,
);

Expand Down

0 comments on commit 8ae149e

Please sign in to comment.