Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- run: test --all-features
- run: cargo test --all-features
- run: cargo test --no-default-features

lints:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = [
]
repository = "https://github.com/rust-transit/gtfs-structure"
license = "MIT"
edition = "2018"
edition = "2024"

[features]
default = ["read-url"]
Expand Down
6 changes: 3 additions & 3 deletions src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ impl<'de> Deserialize<'de> for ExactTimes {
&_ => {
return Err(serde::de::Error::custom(format!(
"Invalid value `{s}`, expected 0 or 1"
)))
)));
}
})
}
Expand Down Expand Up @@ -562,7 +562,7 @@ impl<'de> Deserialize<'de> for TransferType {
s => {
return Err(serde::de::Error::custom(format!(
"Invalid value `{s}`, expected 0, 1, 2, 3, 4, 5"
)))
)));
}
})
}
Expand Down Expand Up @@ -652,7 +652,7 @@ impl<'de> Deserialize<'de> for DefaultFareCategory {
&_ => {
return Err(serde::de::Error::custom(format!(
"Invalid value `{s}`, expected 0 or 1"
)))
)));
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/gtfs.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{objects::*, Error, RawGtfs};
use crate::{Error, RawGtfs, objects::*};
use chrono::prelude::NaiveDate;
use std::collections::{HashMap, HashSet};
use std::convert::TryFrom;
Expand Down
2 changes: 1 addition & 1 deletion src/gtfs_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl GtfsReader {

/// Should the fields be trimmed (default: true)
///
/// It is quite time consumming
/// It is quite time consuming
/// If performance is an issue, and if your data is high quality, you can set it to false
pub fn trim_fields(mut self, trim_fields: bool) -> Self {
self.trim_fields = trim_fields;
Expand Down
2 changes: 1 addition & 1 deletion src/raw_gtfs.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::objects::*;
use crate::Error;
use crate::GtfsReader;
use crate::objects::*;
use std::path::Path;
use web_time::Duration;

Expand Down
2 changes: 1 addition & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::collections::HashMap;

use crate::objects::*;
use crate::Gtfs;
use crate::RawGtfs;
use crate::objects::*;
use chrono::NaiveDate;
use rgb::RGB8;

Expand Down
Loading