better compare
This commit is contained in:
parent
08fd126255
commit
0ccbaf96ef
@ -149,7 +149,7 @@ fn parse_moves(moves_str: &str) -> Result<Vec<Move>, &'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);
|
||||
|
Loading…
Reference in New Issue
Block a user