summaryrefslogtreecommitdiff
path: root/src/exercise.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-03-27 14:18:20 +0100
committermo8it <mo8it@proton.me>2024-03-27 14:18:20 +0100
commit8e0f7e56f7118c90a948634a641b036a28a8d74a (patch)
treed01c434674058804158f82d393b7e5f0fc98e4f3 /src/exercise.rs
parent51b4c240ed006a8279bd94e9b7ed5df67086c86e (diff)
parent87ca05b4bb4436826a61bcbfe946a39a00f00be0 (diff)
Merge branch 'main' into which
Diffstat (limited to 'src/exercise.rs')
-rw-r--r--src/exercise.rs4
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,