Skip to content

Commit 2689ce0

Browse files
committed
make clippy happy
1 parent ca41ef6 commit 2689ce0

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

bevy-trait-query/src/all/core/write.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ impl<'w, Trait: ?Sized + TraitQuery> IntoIterator for WriteTraits<'w, Trait> {
203203
}
204204
}
205205

206-
impl<'world, 'local, Trait: ?Sized + TraitQuery> IntoIterator
207-
for &'local WriteTraits<'world, Trait>
206+
impl<'local, Trait: ?Sized + TraitQuery> IntoIterator
207+
for &'local WriteTraits<'_, Trait>
208208
{
209209
type Item = Ref<'local, Trait>;
210210
type IntoIter = CombinedReadTraitsIter<'local, Trait>;
@@ -230,8 +230,8 @@ impl<'world, 'local, Trait: ?Sized + TraitQuery> IntoIterator
230230
}
231231
}
232232

233-
impl<'world, 'local, Trait: ?Sized + TraitQuery> IntoIterator
234-
for &'local mut WriteTraits<'world, Trait>
233+
impl<'local, Trait: ?Sized + TraitQuery> IntoIterator
234+
for &'local mut WriteTraits<'_, Trait>
235235
{
236236
type Item = Mut<'local, Trait>;
237237
type IntoIter = CombinedWriteTraitsIter<'local, Trait>;

bevy-trait-query/src/all/impls/all.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ use crate::{
2626
/// - `Query<&mut dyn Trait>` yields a [`WriteTraits`] object
2727
pub struct All<T: ?Sized>(T);
2828

29-
unsafe impl<'a, Trait: ?Sized + TraitQuery> QueryData for All<&'a Trait> {
29+
unsafe impl<Trait: ?Sized + TraitQuery> QueryData for All<&Trait> {
3030
type ReadOnly = Self;
3131
}
32-
unsafe impl<'a, Trait: ?Sized + TraitQuery> ReadOnlyQueryData for All<&'a Trait> {}
32+
unsafe impl<Trait: ?Sized + TraitQuery> ReadOnlyQueryData for All<&Trait> {}
3333

3434
// SAFETY: We only access the components registered in the trait registry.
3535
// This is known to match the set of components in the TraitQueryState,
3636
// which is used to match archetypes and register world access.
37-
unsafe impl<'a, Trait: ?Sized + TraitQuery> WorldQuery for All<&'a Trait> {
37+
unsafe impl<Trait: ?Sized + TraitQuery> WorldQuery for All<&Trait> {
3838
type Item<'w> = ReadTraits<'w, Trait>;
3939
type Fetch<'w> = AllTraitsFetch<'w, Trait>;
4040
type State = TraitQueryState<Trait>;
@@ -159,7 +159,7 @@ unsafe impl<'a, Trait: ?Sized + TraitQuery> QueryData for All<&'a mut Trait> {
159159
// SAFETY: We only access the components registered in the trait registry.
160160
// This is known to match the set of components in the TraitQueryState,
161161
// which is used to match archetypes and register world access.
162-
unsafe impl<'a, Trait: ?Sized + TraitQuery> WorldQuery for All<&'a mut Trait> {
162+
unsafe impl<Trait: ?Sized + TraitQuery> WorldQuery for All<&mut Trait> {
163163
type Item<'w> = WriteTraits<'w, Trait>;
164164
type Fetch<'w> = AllTraitsFetch<'w, Trait>;
165165
type State = TraitQueryState<Trait>;

bevy-trait-query/src/one/impls/one.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ use crate::{
2222
/// - `Query<One<&mut dyn Trait>>` yields a [`Mut`] object
2323
pub struct One<T>(pub T);
2424

25-
unsafe impl<'a, T: ?Sized + TraitQuery> QueryData for One<&'a T> {
25+
unsafe impl<T: ?Sized + TraitQuery> QueryData for One<&T> {
2626
type ReadOnly = Self;
2727
}
28-
unsafe impl<'a, T: ?Sized + TraitQuery> ReadOnlyQueryData for One<&'a T> {}
28+
unsafe impl<T: ?Sized + TraitQuery> ReadOnlyQueryData for One<&T> {}
2929

3030
unsafe impl<'a, T: ?Sized + TraitQuery> QueryData for One<&'a mut T> {
3131
type ReadOnly = One<&'a T>;
3232
}
3333

3434
// SAFETY: We only access the components registered in TraitQueryState.
3535
// This same set of components is used to match archetypes, and used to register world access.
36-
unsafe impl<'a, Trait: ?Sized + TraitQuery> WorldQuery for One<&'a Trait> {
36+
unsafe impl<Trait: ?Sized + TraitQuery> WorldQuery for One<&Trait> {
3737
type Item<'w> = Ref<'w, Trait>;
3838
type Fetch<'w> = OneTraitFetch<'w, Trait>;
3939
type State = TraitQueryState<Trait>;
@@ -241,7 +241,7 @@ unsafe impl<'a, Trait: ?Sized + TraitQuery> WorldQuery for One<&'a Trait> {
241241

242242
// SAFETY: We only access the components registered in TraitQueryState.
243243
// This same set of components is used to match archetypes, and used to register world access.
244-
unsafe impl<'a, Trait: ?Sized + TraitQuery> WorldQuery for One<&'a mut Trait> {
244+
unsafe impl<Trait: ?Sized + TraitQuery> WorldQuery for One<&mut Trait> {
245245
type Item<'w> = Mut<'w, Trait>;
246246
type Fetch<'w> = OneTraitFetch<'w, Trait>;
247247
type State = TraitQueryState<Trait>;

0 commit comments

Comments
 (0)