Skip to content

Commit

Permalink
add must_use for query_api::set_var
Browse files Browse the repository at this point in the history
  • Loading branch information
Indra-db committed Oct 7, 2024
1 parent 3150f66 commit e0b2e44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flecs_ecs/src/core/utility/traits/query_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,7 @@ where
///
/// * C++ API: `iterable::set_var`
#[doc(alias = "iterable::set_var")]
#[must_use = "This method returns a new query iterator that should be used"]
fn set_var(&self, var_id: i32, value: impl Into<Entity>) -> QueryIter<P, T> {
let mut iter = self.iterable();
QueryIter::<P, T>::set_var(&mut iter, var_id, value);
Expand Down

0 comments on commit e0b2e44

Please sign in to comment.