Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Query::get_unique #1263

Closed
wants to merge 17 commits into from
Closed
Prev Previous commit
Next Next commit
cargo fmt
  • Loading branch information
TheRawMeatball committed Mar 7, 2021
commit e0c7e36cadd48c2174171701e48f322335b5accf
4 changes: 1 addition & 3 deletions crates/bevy_ecs/src/system/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ where
}

/// See [`Query::single`]
pub fn single_mut(
&mut self,
) -> Result<<Q::Fetch as Fetch<'_>>::Item, QuerySingleError<'_, Q>> {
pub fn single_mut(&mut self) -> Result<<Q::Fetch as Fetch<'_>>::Item, QuerySingleError<'_, Q>> {
let mut query = self.iter_mut();
let first = query.next();
let extra = query.next().is_some();
Expand Down