diff options
| author | mo8it <mo8it@proton.me> | 2024-03-26 17:47:33 +0100 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-03-26 17:47:33 +0100 |
| commit | 853d0593d061119b042a45b602ff52af229dad83 (patch) | |
| tree | 7a931e8023877cc0afbf6773e610946ec0a9b72b /src | |
| parent | 9c6f56b836e91da9071830d4dd4a64417fdced9d (diff) | |
Derive Eq when PartialEq is derived
Diffstat (limited to 'src')
| -rw-r--r-- | src/exercise.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exercise.rs b/src/exercise.rs index 664b362..a13ed2c 100644 --- a/src/exercise.rs +++ b/src/exercise.rs @@ -58,7 +58,7 @@ pub struct Exercise { // An enum to track of the state of an Exercise. // An Exercise can be either Done or Pending -#[derive(PartialEq, Debug)] +#[derive(PartialEq, Eq, Debug)] pub enum State { // The state of the exercise once it's been completed Done, @@ -67,7 +67,7 @@ pub enum State { } // The context information of a pending exercise -#[derive(PartialEq, Debug)] +#[derive(PartialEq, Eq, Debug)] pub struct ContextLine { // The source code that is still pending completion pub line: String, |
