1
Fork 0

Remove to_url_str

This commit is contained in:
Joshua Nelson 2021-04-22 22:00:26 -04:00
parent 3e99439f4d
commit 132211bce5
2 changed files with 2 additions and 6 deletions

View file

@ -1860,10 +1860,6 @@ impl PrimitiveType {
}) })
} }
crate fn to_url_str(&self) -> &'static str {
self.as_str()
}
crate fn as_sym(&self) -> Symbol { crate fn as_sym(&self) -> Symbol {
use PrimitiveType::*; use PrimitiveType::*;
match self { match self {

View file

@ -574,7 +574,7 @@ fn primitive_link(
f, f,
"<a class=\"primitive\" href=\"{}primitive.{}.html\">", "<a class=\"primitive\" href=\"{}primitive.{}.html\">",
"../".repeat(len), "../".repeat(len),
prim.to_url_str() prim.as_str()
)?; )?;
needs_termination = true; needs_termination = true;
} }
@ -603,7 +603,7 @@ fn primitive_link(
f, f,
"<a class=\"primitive\" href=\"{}/primitive.{}.html\">", "<a class=\"primitive\" href=\"{}/primitive.{}.html\">",
loc.join("/"), loc.join("/"),
prim.to_url_str() prim.as_str()
)?; )?;
needs_termination = true; needs_termination = true;
} }