ch = match stream.peek() {
None => {
'\0'
},
Some(valid) => {
if !valid.is_ascii_digit() {
'\0';
}
stream.next().unwrap()
}
};
I am trying to use match binding, but something is not working as it should. It looks like "if" is being ignored, I used the debugger and found that "is_ascii_digit ()" is being executed but regardless of what the function returns the body of "if" is ignored. What could be happening?