Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.8.2 #202

Merged
merged 5 commits into from
Apr 3, 2023
Merged

0.8.2 #202

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 4 additions & 4 deletions src/world/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,14 @@ where
/// ```
///
/// [`Views`]: trait@crate::query::view::Views
pub fn query<V, F, VI, FI, P, I, Q>(
&'a mut self,
pub fn query<'b, V, F, VI, FI, P, I, Q>(
&'b mut self,
#[allow(unused_variables)] query: Query<V, F>,
) -> Option<V>
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.
Expand Down