summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-02-26 10:37:51 +0200
committerLars Wirzenius <liw@liw.fi>2022-02-26 10:37:51 +0200
commit32d4d5a33a7e086e080c2f40b5b77a83d4b46a92 (patch)
treec6fbf28ae2d66ff309cf66baccb10d23318e5ffd
parentb8243f6167236507969740c95c1f1369ba6f938b (diff)
downloadroadmap-32d4d5a33a7e086e080c2f40b5b77a83d4b46a92.tar.gz
fix(map.rs): use a char instead of single-character string
Sponsored-by: author
-rw-r--r--src/map.rs2
1 files changed, 1 insertions, 1 deletions
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),
)