We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Lifetime::get_ref()
1 parent 14c1e71 commit a97f175Copy full SHA for a97f175
src/librustdoc/clean/types.rs
@@ -1207,10 +1207,6 @@ impl GenericBound {
1207
crate struct Lifetime(pub Symbol);
1208
1209
impl Lifetime {
1210
- crate fn get_ref(&self) -> SymbolStr {
1211
- self.0.as_str()
1212
- }
1213
-
1214
crate fn statik() -> Lifetime {
1215
Lifetime(kw::StaticLifetime)
1216
}
src/librustdoc/html/format.rs
@@ -346,7 +346,7 @@ crate fn print_where_clause<'a, 'tcx: 'a>(
346
347
impl clean::Lifetime {
348
crate fn print(&self) -> impl fmt::Display + '_ {
349
- self.get_ref()
+ self.0.as_str()
350
351
352
0 commit comments