From 033a172c967611adacc07a0162a662fbcb1244ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 13 Jun 2021 15:28:08 +0200 Subject: [PATCH] Use a char instead of a str --- acmed/src/template.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acmed/src/template.rs b/acmed/src/template.rs index 68a76b8..61d605a 100644 --- a/acmed/src/template.rs +++ b/acmed/src/template.rs @@ -16,7 +16,7 @@ fn formatter_rev_labels(value: &Value, output: &mut String) -> tinytemplate::err Value::Bool(v) => default_format!(v, output), Value::Number(v) => default_format!(v, output), Value::String(v) => { - let s = v.rsplit(".").collect::>().join("."); + let s = v.rsplit('.').collect::>().join("."); output.push_str(&s); Ok(()) }