From 32d4d5a33a7e086e080c2f40b5b77a83d4b46a92 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 26 Feb 2022 10:37:51 +0200 Subject: fix(map.rs): use a char instead of single-character string Sponsored-by: author --- src/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map.rs b/src/map.rs index b592fbd..3fe1e12 100644 --- a/src/map.rs +++ b/src/map.rs @@ -171,7 +171,7 @@ impl Roadmap { format!( "{} [label=\"{}\" style=filled fillcolor=\"{}\" shape=\"{}\"];\n", step.name(), - fill(step.label(), label_width).replace("\n", "\\n"), + fill(step.label(), label_width).replace('\n', "\\n"), Roadmap::get_status_color(step), Roadmap::get_status_shape(step), ) -- cgit v1.2.1