diff --git a/src/main.rs b/src/main.rs index 7daffdd..adcf418 100644 --- a/src/main.rs +++ b/src/main.rs @@ -149,7 +149,7 @@ fn parse_moves(moves_str: &str) -> Result, &'static str> { while let Some(c) = chars.next() { let nco = chars.peek(); match nco { - Some(nc) if (nc == &'2' || nc == &'\'') => { + Some(nc) if (*nc == '2' || *nc == '\'') => { let s = format!("{}{}", c, nc); let m = Move::from_str(s.as_str()).expect("unable to parse move"); moves.push(m);