summaryrefslogtreecommitdiff
path: root/engine/src/ui
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-07-23 17:40:15 +0200
committerHampusM <hampus@hampusmat.com>2026-07-23 17:40:15 +0200
commita34c019279661332f95d5d843924998c2eaecb17 (patch)
tree615614597f4be3a13d6b8b83dcb5dae8c63d8ab6 /engine/src/ui
parent624e6dd450944e67d84ad7afda54ae2abd277aba (diff)
refactor(engine): correct query type parameters
Diffstat (limited to 'engine/src/ui')
-rw-r--r--engine/src/ui/dear_imgui.rs2
-rw-r--r--engine/src/ui/view/world.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/src/ui/dear_imgui.rs b/engine/src/ui/dear_imgui.rs
index c710784..b571cee 100644
--- a/engine/src/ui/dear_imgui.rs
+++ b/engine/src/ui/dear_imgui.rs
@@ -210,7 +210,7 @@ fn handle_window_changed(
}
fn update(
- target_window_query: Query<(&Window, &SurfaceSpec), (With<TargetWindow>,)>,
+ target_window_query: Query<(&Window, &SurfaceSpec, With<TargetWindow>)>,
mut context: Single<Context>,
time: Single<Time>,
mut assets: Single<Assets>,
diff --git a/engine/src/ui/view/world.rs b/engine/src/ui/view/world.rs
index 9803328..8552ec1 100644
--- a/engine/src/ui/view/world.rs
+++ b/engine/src/ui/view/world.rs
@@ -410,7 +410,7 @@ fn enter_add_component_popup_state(
let popup_name = format!("Add component to {ent_title}");
let mut searchable_components = world
- .query::<(&ComponentInfo,), ()>()
+ .query::<(&ComponentInfo,)>()
.iter_with_euids()
.map(|(id, (component_info,))| {
let user_creatable = if component_info.type_reflection.is_none() {