Skip to content

Commit 6a61f5f

Browse files
committed
clippy fixes
1 parent 451a15c commit 6a61f5f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/bevy_ecs/src/query/state.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,9 @@ impl<D: QueryData, F: QueryFilter> QueryState<D, F> {
387387
///
388388
/// You should not call `update_archetypes` on the returned `QueryState` as the result
389389
/// could be unpredictable. You might end up with a mix of archetypes that only matched
390-
/// the original query + archetypes that only match the new QueryState. Most of the
391-
/// safe methods on QueryState call QueryState::update_archetypes internally, so
392-
/// this best used through a Query.
390+
/// the original query + archetypes that only match the new `QueryState`. Most of the
391+
/// safe methods on `QueryState` call [`QueryState::update_archetypes`] internally, so
392+
/// this best used through a `Query`.
393393
///
394394
/// ## Panics
395395
///

crates/bevy_ecs/src/system/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ impl<'w, 's, D: QueryData, F: QueryFilter> Query<'w, 's, D, F> {
16171617
let world = unsafe { self.world.world() };
16181618
let state = self
16191619
.state
1620-
.join_filtered::<OtherD, OtherF, NewD, NewF>(world, &other.state);
1620+
.join_filtered::<OtherD, OtherF, NewD, NewF>(world, other.state);
16211621
QueryLens {
16221622
world: self.world,
16231623
state,

0 commit comments

Comments
 (0)