Browse Source

Use a char instead of a str

pull/53/head
Rodolphe Bréard 4 years ago
parent
commit
033a172c96
  1. 2
      acmed/src/template.rs

2
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::Bool(v) => default_format!(v, output),
Value::Number(v) => default_format!(v, output), Value::Number(v) => default_format!(v, output),
Value::String(v) => { Value::String(v) => {
let s = v.rsplit(".").collect::<Vec<&str>>().join(".");
let s = v.rsplit('.').collect::<Vec<&str>>().join(".");
output.push_str(&s); output.push_str(&s);
Ok(()) Ok(())
} }

Loading…
Cancel
Save