Use == instead of eq

This commit is contained in:
mo8it 2024-03-26 17:49:55 +01:00
parent 980ffa2a2b
commit e89028581c

View file

@ -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())