1
Fork 0

Remove needless lifetimes

This commit is contained in:
Jeremy Stucki 2019-06-25 19:43:18 +02:00 committed by Jeremy Stucki
parent 5748825cc8
commit 47ea8ae022
No known key found for this signature in database
GPG key ID: 8F548A5A2ED13F58
16 changed files with 26 additions and 26 deletions

View file

@ -119,7 +119,7 @@ impl TocBuilder {
/// Push a level `level` heading into the appropriate place in the
/// hierarchy, returning a string containing the section number in
/// `<num>.<num>.<num>` format.
pub fn push<'a>(&'a mut self, level: u32, name: String, id: String) -> &'a str {
pub fn push(&mut self, level: u32, name: String, id: String) -> &str {
assert!(level >= 1);
// collapse all previous sections into their parents until we