Skip to content

Commit 132211b

Browse files
committed
Remove to_url_str
1 parent 3e99439 commit 132211b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/librustdoc/clean/types.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1860,10 +1860,6 @@ impl PrimitiveType {
18601860
})
18611861
}
18621862

1863-
crate fn to_url_str(&self) -> &'static str {
1864-
self.as_str()
1865-
}
1866-
18671863
crate fn as_sym(&self) -> Symbol {
18681864
use PrimitiveType::*;
18691865
match self {

src/librustdoc/html/format.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ fn primitive_link(
574574
f,
575575
"<a class=\"primitive\" href=\"{}primitive.{}.html\">",
576576
"../".repeat(len),
577-
prim.to_url_str()
577+
prim.as_str()
578578
)?;
579579
needs_termination = true;
580580
}
@@ -603,7 +603,7 @@ fn primitive_link(
603603
f,
604604
"<a class=\"primitive\" href=\"{}/primitive.{}.html\">",
605605
loc.join("/"),
606-
prim.to_url_str()
606+
prim.as_str()
607607
)?;
608608
needs_termination = true;
609609
}

0 commit comments

Comments
 (0)