Skip to content

Commit 980ffa2

Browse files
committed
Use == on simple enums
1 parent 1f2029a commit 980ffa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/verify.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pub fn verify<'a>(
5151
Ok(())
5252
}
5353

54+
#[derive(PartialEq, Eq)]
5455
enum RunMode {
5556
Interactive,
5657
NonInteractive,
@@ -124,7 +125,7 @@ fn compile_and_test(
124125
if verbose {
125126
println!("{}", output.stdout);
126127
}
127-
if let RunMode::Interactive = run_mode {
128+
if run_mode == RunMode::Interactive {
128129
Ok(prompt_for_completion(exercise, None, success_hints))
129130
} else {
130131
Ok(true)

0 commit comments

Comments
 (0)