String::with_capacity(word.len()); result.push_str(&word[..idx].to_uppercase()); result.push_str(&word[idx..]); result } .

$as_out:ty) => { tracing::warn!("error generating QR SVG: {e}"); Ok((None, Some("error generating QR.