mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-05-15 22:16:30 +02:00
Use == instead of eq
This commit is contained in:
parent
980ffa2a2b
commit
e89028581c
@ -289,7 +289,7 @@ fn spawn_watch_shell(
|
||||
}
|
||||
|
||||
fn find_exercise<'a>(name: &str, exercises: &'a [Exercise]) -> &'a Exercise {
|
||||
if name.eq("next") {
|
||||
if name == "next" {
|
||||
exercises
|
||||
.iter()
|
||||
.find(|e| !e.looks_done())
|
||||
|
Loading…
x
Reference in New Issue
Block a user