Skip to content

Commit

Permalink
Fix keyexpr_tree lifetime (#1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets authored Sep 19, 2024
1 parent db755e3 commit 9fd0e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commons/zenoh-keyexpr/src/keyexpr_tree/traits/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub trait IKeyExprTree<'a, Weight> {
/// Accesses the node at `key` if it exists, treating KEs as if they were completely verbatim keys.
///
/// Returns `None` if `key` is not present in the KeTree.
fn node(&'a self, key: &keyexpr) -> Option<&Self::Node>;
fn node(&'a self, key: &keyexpr) -> Option<&'a Self::Node>;

/// Returns a reference to the weight of the node at `key` if it exists.
fn weight_at(&'a self, key: &keyexpr) -> Option<&'a Weight> {
Expand Down

0 comments on commit 9fd0e65

Please sign in to comment.