From d0c7b0a39ed6703940da4896d2caa79ad36590e0 Mon Sep 17 00:00:00 2001 From: sam-anthony Date: Wed, 9 Feb 2022 17:54:34 -0330 Subject: small tweaks --- src/lib.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 1646e17..b33113b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,12 +1,4 @@ pub mod app; pub mod input; +pub mod ui; pub mod unit_of_measurement; - -use crate::unit_of_measurement::{Pressure, Temperature, Volume}; - -const GAS_CONSTANT: f64 = 8.314472; -const MOLAR_MASS_OF_AIR: f64 = 0.0289647; // Kg/mol - -fn moles_from_gas_law(pres: Pressure, vol: Volume, temp: Temperature) -> f64 { - (pres.as_pascals() * vol.as_cubic_metres()) / (GAS_CONSTANT * temp.as_kelvin()) -} -- cgit v1.2.3