diff --git a/Cargo.toml b/Cargo.toml index 6ea4de5..dfe4d90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ features = ["full"] [package] name = "foxmq" -version = "0.3.0" +version = "0.3.1" edition = "2021" publish = false default-run = "foxmq" diff --git a/src/mqtt/trie/mod.rs b/src/mqtt/trie/mod.rs index 1d30727..1407ae5 100644 --- a/src/mqtt/trie/mod.rs +++ b/src/mqtt/trie/mod.rs @@ -336,7 +336,7 @@ impl<'a, T: 'a> IdEntry<'a, T> { } Some(remove_entry(self.entry_id(), self.nodes, |node| { - node.leaf_data.all(&mut empty) + node.filters.is_empty() && node.leaf_data.all(&mut empty) })) }