From d3aa593a6b339ae1475aa50e564e2774057faaa5 Mon Sep 17 00:00:00 2001 From: Wesley Wiser Date: Mon, 4 Jun 2018 23:10:23 -0400 Subject: [PATCH] Remove redundant s in output --- src/librustc/util/profiling.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/util/profiling.rs b/src/librustc/util/profiling.rs index 5bb1ddd669b..ef4e2332604 100644 --- a/src/librustc/util/profiling.rs +++ b/src/librustc/util/profiling.rs @@ -92,7 +92,7 @@ impl CategoryData { ($name:tt, $rustic_name:ident) => { let (hits, total) = self.query_counts.$rustic_name; let (hits, total) = if total > 0 { - (format!("{:.2}%", (((hits as f32) / (total as f32)) * 100.0)), total.to_string()) + (format!("{:.2}", (((hits as f32) / (total as f32)) * 100.0)), total.to_string()) } else { ("".into(), "".into()) };