We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
to_url_str
1 parent 3e99439 commit 132211bCopy full SHA for 132211b
src/librustdoc/clean/types.rs
@@ -1860,10 +1860,6 @@ impl PrimitiveType {
1860
})
1861
}
1862
1863
- crate fn to_url_str(&self) -> &'static str {
1864
- self.as_str()
1865
- }
1866
-
1867
crate fn as_sym(&self) -> Symbol {
1868
use PrimitiveType::*;
1869
match self {
src/librustdoc/html/format.rs
@@ -574,7 +574,7 @@ fn primitive_link(
574
f,
575
"<a class=\"primitive\" href=\"{}primitive.{}.html\">",
576
"../".repeat(len),
577
- prim.to_url_str()
+ prim.as_str()
578
)?;
579
needs_termination = true;
580
@@ -603,7 +603,7 @@ fn primitive_link(
603
604
"<a class=\"primitive\" href=\"{}/primitive.{}.html\">",
605
loc.join("/"),
606
607
608
609
0 commit comments