fix: must_use the structs

This commit is contained in:
EdJoPaTo
2024-05-23 12:03:02 +02:00
parent 136599257a
commit d676f66504
6 changed files with 11 additions and 12 deletions
+1
View File
@@ -5,6 +5,7 @@ use crate::tree_item::TreeItem;
/// A flattened item of all visible [`TreeItem`]s.
///
/// Generated via [`TreeState::flatten`](crate::TreeState::flatten).
#[must_use]
pub struct Flattened<'text, Identifier> {
pub identifier: Vec<Identifier>,
pub item: &'text TreeItem<'text, Identifier>,