From cdf793bbf638ac496a41075ad14d4ecbf2391153 Mon Sep 17 00:00:00 2001 From: Jean SIMARD Date: Wed, 26 Feb 2020 17:54:26 +0100 Subject: [PATCH] [feature] Support StopLocation write by default --- Cargo.toml | 1 - src/ntfs/write.rs | 8 -------- tests/gtfs2ntfs.rs | 1 - 3 files changed, 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 82ace70be..ec578c8ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,6 @@ members = [ ] [features] -stop_location = [] xmllint = ["proj"] [dependencies] diff --git a/src/ntfs/write.rs b/src/ntfs/write.rs index e721a5254..fc2ada32b 100644 --- a/src/ntfs/write.rs +++ b/src/ntfs/write.rs @@ -445,14 +445,6 @@ pub fn write_stops( stop_areas: &CollectionWithId, stop_locations: &CollectionWithId, ) -> Result<()> { - #[cfg(not(feature = "stop_location"))] - fn write_stop_locations( - _wtr: &mut Writer, - _stop_locations: &CollectionWithId, - ) -> Result<()> { - Ok(()) - } - #[cfg(feature = "stop_location")] fn write_stop_locations( wtr: &mut Writer, stop_locations: &CollectionWithId, diff --git a/tests/gtfs2ntfs.rs b/tests/gtfs2ntfs.rs index d0aa5acdd..7b4c27f3e 100644 --- a/tests/gtfs2ntfs.rs +++ b/tests/gtfs2ntfs.rs @@ -150,7 +150,6 @@ fn test_gtfs_with_platforms() { }); } -#[cfg(feature = "stop_location")] #[test] fn test_gtfs_with_levels() { test_in_tmp_dir(|path| {