diff --git a/src/simulator/ideal_gas.rs b/src/simulator/ideal_gas.rs index cedb30f..789d3f2 100644 --- a/src/simulator/ideal_gas.rs +++ b/src/simulator/ideal_gas.rs @@ -148,7 +148,7 @@ fn update_ideal_gas_volume_from_pressure( mut query: Query<(&mut Volume, &Temperature, &Pressure, &SimMass, &GasSpecies), With>, ) { for (mut volume, temperature, pressure, mass, species) in query.iter_mut() { - *volume = ideal_gas_volume(*temperature, *pressure, *mass, &species); + *volume = ideal_gas_volume(*temperature, *pressure, *mass, species); } } diff --git a/src/simulator/properties.rs b/src/simulator/properties.rs index 4117843..6615665 100644 --- a/src/simulator/properties.rs +++ b/src/simulator/properties.rs @@ -6,7 +6,7 @@ use std::ops::{Add, Div, Mul, Sub}; use avian3d::{ math::{Scalar, PI}, - prelude::{ColliderDensity, ColliderMassProperties, PhysicsSet, RigidBody}, + prelude::{ColliderDensity, ColliderMassProperties, PhysicsSet}, }; use bevy::{prelude::*, reflect::Reflect}; #[cfg(feature = "config-files")]