refactor(lint): improve and adapt to lints
This commit is contained in:
@@ -23,6 +23,7 @@ pub type TreeIdentifierVec = Vec<usize>;
|
||||
/// assert_eq!(branch, []);
|
||||
/// assert_eq!(leaf, None);
|
||||
/// ```
|
||||
#[must_use]
|
||||
pub const fn get_without_leaf(identifier: TreeIdentifier) -> (TreeIdentifier, Option<usize>) {
|
||||
match identifier {
|
||||
[branch @ .., leaf] => (branch, Some(*leaf)),
|
||||
|
||||
Reference in New Issue
Block a user