Skip to content

Commit

Permalink
fixup! refactor: improve lifetime names
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed May 15, 2024
1 parent 2fd909a commit fc24953
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tree_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ where

/// Get a flat list of all visible (= below open) [`TreeItem`]s with this `TreeState`.
#[must_use]
pub fn flatten<'a>(
pub fn flatten<'text>(
&self,
items: &'a [TreeItem<'a, Identifier>],
) -> Vec<Flattened<'a, Identifier>> {
items: &'text [TreeItem<'text, Identifier>],
) -> Vec<Flattened<'text, Identifier>> {
flatten(&self.open, items, &[])
}

Expand Down

0 comments on commit fc24953

Please sign in to comment.