bevy/crates/bevy_ecs_compile_fail_tests/tests
harudagondi 959f3b1186 Allows conversion of mutable queries to immutable queries (#5376)
# Objective

- Allows conversion of mutable queries to immutable queries.
- Fixes #4606

## Solution

- Add `to_readonly` method on `Query`, which uses `QueryState::as_readonly`
- `AsRef` is not feasible because creation of new queries is needed.

---

## Changelog

### Added

- Allows conversion of mutable queries to immutable queries using `Query::to_readonly`.
2022-07-20 01:09:45 +00:00
..
ui Allows conversion of mutable queries to immutable queries (#5376) 2022-07-20 01:09:45 +00:00
ui.rs Assert compiler errors for compile_fail tests (#3067) 2021-11-13 22:43:19 +00:00