define expected capacity

This commit is contained in:
yggverse 2026-03-08 05:11:10 +02:00
parent 31346d1d63
commit c5f9690967

View file

@ -217,7 +217,7 @@ impl Gemini {
// Is link
if let Some(link) = ggemtext::line::Link::parse(line) {
if let Some(uri) = link.uri(Some(base)) {
let mut alt = Vec::new();
let mut alt = Vec::with_capacity(2);
if uri.scheme() != base.scheme() {
alt.push("".to_string());