From ec310a6c61ce16d9be1f2d622d802a2e4cf45225 Mon Sep 17 00:00:00 2001 From: Anders429 Date: Sun, 2 Apr 2023 23:38:19 -0700 Subject: [PATCH 1/3] Loosen the lifetime of Entry::query(). --- CHANGELOG.md | 2 ++ src/world/entry.rs | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 110369b1..3af85898 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## Unreleased +### Fixed +- `Entry::query()` now requires a less-strict lifetime. ## 0.8.1 - 2023-04-02 ### Fixed 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. From e0c14e00f91120c6a1e3477c854d07c7c9bf20f0 Mon Sep 17 00:00:00 2001 From: Anders429 Date: Sun, 2 Apr 2023 23:40:51 -0700 Subject: [PATCH 2/3] Prepare to release 0.8.2. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From a03d87edbc2581b7477cd48471654fe4382d8f47 Mon Sep 17 00:00:00 2001 From: Anders429 Date: Sun, 2 Apr 2023 23:41:20 -0700 Subject: [PATCH 3/3] Cut version 0.8.2. --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3af85898..684e9c86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## Unreleased + +## 0.8.2 - 2023-04-02 ### Fixed - `Entry::query()` now requires a less-strict lifetime.