Skip to content

Commit 598be86

Browse files
committed
- fix doc mistakes
- remove unreachable impl for tuple
1 parent d21d87c commit 598be86

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
99
-->
1010

1111
## [Unreleased]
12+
### [0.15.1-alpha3] - 2025-01-20
13+
14+
- fix doc mistakes
15+
- remove unreachable impl for tuple
16+
1217
### [0.15.1-alpha2] - 2025-01-20
1318

1419
- Add `ID` type parameter for differentiating multiple quadtree if needed.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["bevy_quadtree"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.15.1-alpha2"
6+
version = "0.15.1-alpha3"
77
authors = ["Louis <[email protected]>"]
88
description = "A quadtree plugin for bevy"
99
license = "MIT"

bevy_quadtree/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ xx.observe(
193193
let delta = Vec2::new(ev.width * FONT_WIDTH, (ev.height - 1.) * FONT_HEIGHT);
194194
s.custom_size = Some(CUSTOM_SIZE + delta);
195195
// the plugin default only track `Changed<GlobalTransform>`
196-
// without feature `sprite` enable, you can also do this way.
196+
// without feature `sprite` enabled, you can also do this way.
197197
c.set_init_size(CUSTOM_SIZE + delta);
198198
}
199199
},

bevy_quadtree/src/query.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub struct QOr<T>(core::marker::PhantomData<T>);
88
/// `Not` filter used in `QuadTree::query`
99
pub struct QNot<T>(core::marker::PhantomData<T>);
1010

11-
/// implemented for [`Disjoint`], [`Overlap`], [`Contain`], [`Contained`], [`QOr`], [`QNot`] and tuple of them.
11+
/// implemented for [`Disjoint`], [`Overlap`], [`Contain`], [`Contained`], [`QOr`], [`QNot`].
1212
///
1313
/// There is no `QAnd` because all the filters do not overlap, e.g. `QAnd<(Disjoint, Contain)>` is always empty.
1414
#[allow(missing_docs)]
@@ -191,15 +191,10 @@ macro_rules! impl_or_relation {
191191
};
192192
}
193193

194-
impl_or_relation!(R1);
195-
impl_or_relation!(R1, R2);
196-
impl_or_relation!(R1, R2, R3);
197-
impl_or_relation!(R1, R2, R3, R4);
198-
impl_or_relation!(R1, R2, R3, R4, R5);
199-
impl_or_relation!(R1, R2, R3, R4, R5, R6);
200-
impl_or_relation!(R1, R2, R3, R4, R5, R6, R7);
201-
impl_or_relation!(R1, R2, R3, R4, R5, R6, R7, R8);
202-
impl_or_relation!(R1, R2, R3, R4, R5, R6, R7, R8, R9);
194+
impl_or_relation!(R0);
195+
impl_or_relation!(R0, R1);
196+
impl_or_relation!(R0, R1, R2);
197+
impl_or_relation!(R0, R1, R2, R3);
203198

204199
macro_rules! impl_not_relation {
205200
($($r: ident), +) => {

bevy_quadtree/src/tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl<const N: usize, const W: usize, const H: usize, const K: usize, const ID: u
8888
/// The rule of the relation is defined in [`CollisionQuery::query`] and [`query`](crate::query).
8989
///
9090
/// [`QRelation`]: implemented for [`Disjoint`](crate::Disjoint), [`Overlap`](crate::Overlap),
91-
/// [`Contain`](crate::Contain), [`Contained`](crate::Contained), [`QOr`](crate::QOr), [`QNot`](crate::QNot) and tuple of them.
91+
/// [`Contain`](crate::Contain), [`Contained`](crate::Contained), [`QOr`](crate::QOr), [`QNot`](crate::QNot).
9292
pub fn query<S, Q>(&self, boundary: &S) -> EntityHashSet
9393
where
9494
S: CollisionQuery,

0 commit comments

Comments
 (0)