From 8ae149e85da1643b6d305bdc9d8148c0c5bb7487 Mon Sep 17 00:00:00 2001 From: Jean SIMARD Date: Fri, 9 Oct 2020 12:06:22 +0200 Subject: [PATCH] [fix] Small syntax improvement instead of 'matches' --- src/ntfs/read.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ntfs/read.rs b/src/ntfs/read.rs index 7472b4160..067247143 100644 --- a/src/ntfs/read.rs +++ b/src/ntfs/read.rs @@ -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, );