Skip to content

Commit ee64910

Browse files
committed
clippy is appeased (I hope)
1 parent 523b37a commit ee64910

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/conway/conway_map.rs

+1
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ impl Map {
284284
}
285285
///Function largely exists solely for the purpose of easing the thickness of the gridlines
286286
///based on the cell size
287+
#[allow(dead_code)]
287288
fn sigmoid_easing(&mut self, x_0: f32, k: f32) -> f32 {
288289
let exponent = -k * (self.cell_size - x_0);
289290
1.0 / (1.0 + exponent.exp())

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pub mod conway;
44
pub use app::ConwaySim;
55
pub use conway::conway_map::Map;
66

7+
#[derive(Default)]
78
pub struct RunStatistics {
89
pub births: u32,
910
pub deaths: u32,

0 commit comments

Comments
 (0)