From e7b23d974d91aeb69be486e4249b96d5687d0b5e Mon Sep 17 00:00:00 2001 From: a14m Date: Sun, 4 Apr 2021 01:37:53 +0200 Subject: Remove unneeded mocking --- CLI/rust/src/game_of_life/opts.rs | 6 +----- 1 file changed, 1 insertion(+), 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). -- cgit v1.2.3