Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Indra-db committed Jan 23, 2025
1 parent ab118eb commit 40c1e09
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion flecs_ecs/src/addons/meta/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl<'a, T: 'static> Component<'a, T> {
}
}

impl<'a, T: EnumComponentInfo + 'static> Component<'a, T> {
impl<T: EnumComponentInfo + 'static> Component<'_, T> {
/// Add constant.
///
/// # See also
Expand Down
18 changes: 9 additions & 9 deletions flecs_ecs/src/core/table/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,9 @@ where
/// The user to pass the correct index + the index being within bounds + optional data
/// to be valid.
///
/// This function should not be used in each_iter() callbacks, unless it is to
/// access a shared field. For access to non-shared fields in each_iter(), use
/// field_at.
/// This function should not be used in `each_iter()` callbacks, unless it is to
/// access a shared field. For access to non-shared fields in `each_iter()`, use
/// `field_at`.
///
/// # Type parameters
///
Expand Down Expand Up @@ -551,9 +551,9 @@ where
///
/// Caller must ensure that the field at `index` is accessible as `T`
///
/// This function should not be used in each_iter() callbacks, unless it is to
/// access a shared field. For access to non-shared fields in each_iter(), use
/// field_at.
/// This function should not be used in `each_iter()` callbacks, unless it is to
/// access a shared field. For access to non-shared fields in `each_iter()`, use
/// `field_at`.
///
/// # Type parameters
///
Expand Down Expand Up @@ -587,9 +587,9 @@ where
///
/// # Safety
///
/// This function should not be used in each_iter() callbacks, unless it is to
/// access a shared field. For access to non-shared fields in each_iter(), use
/// field_at.
/// This function should not be used in `each_iter()` callbacks, unless it is to
/// access a shared field. For access to non-shared fields in `each_iter()`, use
/// `field_at`.
///
/// # Arguments
///
Expand Down
2 changes: 1 addition & 1 deletion flecs_ecs/src/core/utility/traits/query_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ where

while self.iter_next(&mut iter) {
ecs_assert!(
iter.entities != std::ptr::null(),
!iter.entities.is_null(),
FlecsErrorCode::InvalidParameter,
"query does not return entities ($this variable is not populated)"
);
Expand Down

0 comments on commit 40c1e09

Please sign in to comment.