rustdoc: Remove single-use Lifetime::get_ref() function

This commit is contained in:
Noah Lev 2021-12-03 20:08:11 -08:00
parent 14c1e71d09
commit a97f175350
2 changed files with 1 additions and 5 deletions

View file

@ -1207,10 +1207,6 @@ impl GenericBound {
crate struct Lifetime(pub Symbol);
impl Lifetime {
crate fn get_ref(&self) -> SymbolStr {
self.0.as_str()
}
crate fn statik() -> Lifetime {
Lifetime(kw::StaticLifetime)
}

View file

@ -346,7 +346,7 @@ impl clean::Generics {
impl clean::Lifetime {
crate fn print(&self) -> impl fmt::Display + '_ {
self.get_ref()
self.0.as_str()
}
}