diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-10-20 20:34:26 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-10-20 20:34:26 +0300 |
commit | 91d38366b304c6b4dc595f0e5d4bf2c3bb42ab8f (patch) | |
tree | 2cc800c0a9c75a3145bf2c0292df80f432fdf31d /src/steps.rs | |
parent | dac1c68d93e07b55add6cc301ed1486c6befef67 (diff) | |
download | subplot-91d38366b304c6b4dc595f0e5d4bf2c3bb42ab8f.tar.gz |
Change: make StepKind, ScenarioStep derive useful traits
Diffstat (limited to 'src/steps.rs')
-rw-r--r-- | src/steps.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/steps.rs b/src/steps.rs index c8b4a27..dbdabe6 100644 --- a/src/steps.rs +++ b/src/steps.rs @@ -1,4 +1,5 @@ /// A parsed scenario step. +#[derive(Debug, Eq, PartialEq)] pub struct ScenarioStep { kind: StepKind, text: String, @@ -22,7 +23,7 @@ impl ScenarioStep { } /// The kind of step we have. -#[derive(Clone,Copy)] +#[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum StepKind { Given, When, |