Skip to content

Commit

Permalink
Merge pull request #202 from Anders429/0.8.2
Browse files Browse the repository at this point in the history
0.8.2
  • Loading branch information
Anders429 authored Apr 3, 2023
2 parents 6947b98 + a03d87e commit b9fdc53
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
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

0 comments on commit b9fdc53

Please sign in to comment.