Skip to content

Commit 853d059

Browse files
committed
Derive Eq when PartialEq is derived
1 parent 9c6f56b commit 853d059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/exercise.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub struct Exercise {
5858

5959
// An enum to track of the state of an Exercise.
6060
// An Exercise can be either Done or Pending
61-
#[derive(PartialEq, Debug)]
61+
#[derive(PartialEq, Eq, Debug)]
6262
pub enum State {
6363
// The state of the exercise once it's been completed
6464
Done,
@@ -67,7 +67,7 @@ pub enum State {
6767
}
6868

6969
// The context information of a pending exercise
70-
#[derive(PartialEq, Debug)]
70+
#[derive(PartialEq, Eq, Debug)]
7171
pub struct ContextLine {
7272
// The source code that is still pending completion
7373
pub line: String,

0 commit comments

Comments
 (0)