Remove to_url_str
This commit is contained in:
parent
3e99439f4d
commit
132211bce5
2 changed files with 2 additions and 6 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue