From 5ca7a7398d62c696aaa834375da405b33a51dd7b Mon Sep 17 00:00:00 2001 From: Robert Obryk Date: Fri, 11 Oct 2024 20:22:40 +0200 Subject: [PATCH] Remove an unused trait bound. 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). --- src/gtfs_reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtfs_reader.rs b/src/gtfs_reader.rs index 5f77b1f..11a3e29 100644 --- a/src/gtfs_reader.rs +++ b/src/gtfs_reader.rs @@ -99,7 +99,7 @@ impl GtfsReader { /// Reads the raw GTFS from a local zip archive or local directory pub fn read_from_path

(self, path: P) -> Result where - P: AsRef + std::fmt::Display, + P: AsRef, { self.raw().read_from_path(path).and_then(Gtfs::try_from) }