diff --git a/CHANGELOG.md b/CHANGELOG.md index 110369b1..684e9c86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## 0.8.2 - 2023-04-02 +### Fixed +- `Entry::query()` now requires a less-strict lifetime. + ## 0.8.1 - 2023-04-02 ### Fixed - `registry::ContainsViews` is now a public trait. diff --git a/Cargo.toml b/Cargo.toml index 270a63b9..b8f26587 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "brood" -version = "0.8.1" +version = "0.8.2" authors = ["Anders Evensen"] edition = "2021" rust-version = "1.65.0" diff --git a/src/world/entry.rs b/src/world/entry.rs index ac056ef8..b5cb3781 100644 --- a/src/world/entry.rs +++ b/src/world/entry.rs @@ -307,14 +307,14 @@ where /// ``` /// /// [`Views`]: trait@crate::query::view::Views - pub fn query( - &'a mut self, + pub fn query<'b, V, F, VI, FI, P, I, Q>( + &'b mut self, #[allow(unused_variables)] query: Query, ) -> Option where - V: Views<'a> + Filter, + V: Views<'b> + Filter, F: Filter, - R: ContainsQuery<'a, F, FI, V, VI, P, I, Q>, + R: ContainsQuery<'b, F, FI, V, VI, P, I, Q>, { // SAFETY: The `R` on which `filter()` is called is the same `R` over which the identifier // is generic over.