Skip to content

Commit

Permalink
Remove an unused trait bound.
Browse files Browse the repository at this point in the history
Nothing uses this Display bound, RawGtfsReader lacks a similar bound,
and paths in general are not Display (because there is no well-defined
way to interpret non-ASCII bytes in them).
  • Loading branch information
robryk committed Oct 11, 2024
1 parent 62f9e17 commit 5ca7a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gtfs_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl GtfsReader {
/// Reads the raw GTFS from a local zip archive or local directory
pub fn read_from_path<P>(self, path: P) -> Result<Gtfs, Error>
where
P: AsRef<Path> + std::fmt::Display,
P: AsRef<Path>,
{
self.raw().read_from_path(path).and_then(Gtfs::try_from)
}
Expand Down

0 comments on commit 5ca7a73

Please sign in to comment.