set default capacity

This commit is contained in:
yggverse 2026-01-10 18:05:26 +02:00
parent e86b241ee6
commit 2463446fcd

View file

@ -50,7 +50,7 @@ fn index(
"index", "index",
context! { context! {
title: { title: {
let mut t = String::new(); let mut t = String::with_capacity(9);
if let Some(q) = search && !q.is_empty() { if let Some(q) = search && !q.is_empty() {
t.push_str(q); t.push_str(q);
t.push_str(S); t.push_str(S);