Skip to content

Commit

Permalink
Clippit
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Aug 18, 2024
1 parent 70e5e71 commit ce2a82a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extension/src/ballistics/map/model.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#[derive(Debug)]
#[allow(dead_code)]
pub struct Map {
heights: Vec<i64>,
building_nums: Vec<i64>,
surface_is_water: Vec<bool>,
size: u32,
size: u32, // unused
grids: u32,
}

Expand Down Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions extension/src/common/types/temperature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ce2a82a

Please sign in to comment.