From 6241ec706899ba46034fffd2effa66652ebe9b2e Mon Sep 17 00:00:00 2001 From: Maeeen Date: Sat, 2 Nov 2024 00:54:03 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20the=20=E2=80=9Cms=E2=80=9D=20prefix=20?= =?UTF-8?q?in=20`Gtfs.print=5Fstats`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The switch to a duration introduced in commit c0f170f makes the need to print an extra “ms” unnecessary, as it is already handled in the Rust standard library. For reference, - the `fmt` function: https://doc.rust-lang.org/src/core/time.rs.html#1241 - its automatic prefixing: https://doc.rust-lang.org/src/core/time.rs.html#1402 --- src/gtfs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtfs.rs b/src/gtfs.rs index 2729d1e..8d40af1 100644 --- a/src/gtfs.rs +++ b/src/gtfs.rs @@ -88,7 +88,7 @@ impl Gtfs { /// Prints on stdout some basic statistics about the GTFS file (numbers of elements for each object). Mostly to be sure that everything was read pub fn print_stats(&self) { println!("GTFS data:"); - println!(" Read in {:?} ms", self.read_duration); + println!(" Read in {:?}", self.read_duration); println!(" Stops: {}", self.stops.len()); println!(" Routes: {}", self.routes.len()); println!(" Trips: {}", self.trips.len());