Skip to content

Commit a97f175

Browse files
committed
rustdoc: Remove single-use Lifetime::get_ref() function
1 parent 14c1e71 commit a97f175

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/librustdoc/clean/types.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1207,10 +1207,6 @@ impl GenericBound {
12071207
crate struct Lifetime(pub Symbol);
12081208

12091209
impl Lifetime {
1210-
crate fn get_ref(&self) -> SymbolStr {
1211-
self.0.as_str()
1212-
}
1213-
12141210
crate fn statik() -> Lifetime {
12151211
Lifetime(kw::StaticLifetime)
12161212
}

src/librustdoc/html/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ crate fn print_where_clause<'a, 'tcx: 'a>(
346346

347347
impl clean::Lifetime {
348348
crate fn print(&self) -> impl fmt::Display + '_ {
349-
self.get_ref()
349+
self.0.as_str()
350350
}
351351
}
352352

0 commit comments

Comments
 (0)