summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora14m <[email protected]>2021-04-04 01:37:53 +0200
committera14m <[email protected]>2021-04-04 01:37:53 +0200
commite7b23d974d91aeb69be486e4249b96d5687d0b5e (patch)
treeef66a6484e4a3504f7e08a14815f525044c7890d
parentc9084a6aa4b234fdb77b838bc1fb903145a6b88f (diff)
Remove unneeded mocking
-rw-r--r--CLI/rust/src/game_of_life/opts.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/CLI/rust/src/game_of_life/opts.rs b/CLI/rust/src/game_of_life/opts.rs
index 7431b2c..09e49c9 100644
--- a/CLI/rust/src/game_of_life/opts.rs
+++ b/CLI/rust/src/game_of_life/opts.rs
@@ -2,12 +2,9 @@ use clap::{ArgMatches, Error};
use rand::{thread_rng, Rng};
use terminal_size::{terminal_size, Height, Width};
-#[cfg(test)]
-use mocktopus::macros::mockable;
-
pub(crate) mod validators;
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, PartialEq)]
/// Parsed options for generating a Game of Life simulation
pub(crate) struct Opts {
pub seed: usize,
@@ -19,7 +16,6 @@ pub(crate) struct Opts {
pub delay: usize,
}
-#[cfg_attr(test, mockable)]
impl Opts {
/// Parse args, set the defaults for the dynamic options (like `seed`, `width`, `height`)
/// and validate the conflicting options (same live/dead cell configured).