From f68d841e52903f09bffaf8fd8841b957f62050ec Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sun, 27 Jul 2025 10:31:12 -0500 Subject: [PATCH] Switch to non-deprecated `.single_mut()` method --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f6b0168..4fa9c50 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -139,7 +139,7 @@ fn input_ship_thruster( mut query: Query<(&mut Velocity, &Rotation, &mut Children, &ThrusterColors), With>, mut commands: Commands, ) { - let Ok((mut velocity, rotation, children, colors)) = query.get_single_mut() else { + let Ok((mut velocity, rotation, children, colors)) = query.single_mut() else { let count = query.iter().count(); panic!("There should be exactly one player ship! Instead, there seems to be {count}."); };