mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 08:35:28 +00:00
define expected capacity
This commit is contained in:
parent
31346d1d63
commit
c5f9690967
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ impl Gemini {
|
||||||
// Is link
|
// Is link
|
||||||
if let Some(link) = ggemtext::line::Link::parse(line) {
|
if let Some(link) = ggemtext::line::Link::parse(line) {
|
||||||
if let Some(uri) = link.uri(Some(base)) {
|
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() {
|
if uri.scheme() != base.scheme() {
|
||||||
alt.push("⇖".to_string());
|
alt.push("⇖".to_string());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue