diff --git a/extension/src/ballistics/map/model.rs b/extension/src/ballistics/map/model.rs index 73f0c335db5..9f2c451115f 100644 --- a/extension/src/ballistics/map/model.rs +++ b/extension/src/ballistics/map/model.rs @@ -1,9 +1,10 @@ #[derive(Debug)] +#[allow(dead_code)] pub struct Map { heights: Vec, building_nums: Vec, surface_is_water: Vec, - size: u32, + size: u32, // unused grids: u32, } @@ -56,7 +57,7 @@ impl Map { self.surface_is_water[index] = is_water; } - #[must_use] + #[allow(dead_code)] pub const fn size(&self) -> u32 { self.size } diff --git a/extension/src/common/types/temperature.rs b/extension/src/common/types/temperature.rs index 9d6784538af..3b4ab1bb265 100644 --- a/extension/src/common/types/temperature.rs +++ b/extension/src/common/types/temperature.rs @@ -28,6 +28,7 @@ impl Temperature { self.0 } + #[allow(dead_code)] pub fn as_fahrenheit(self) -> f64 { (self.0 - 273.15) * 9.0 / 5.0 + 32.0 }