Update parser.rs

fixing compilation error using the approach suggested by 444fa1b7cffcd99ca5b8abb51acf979f06a25899 of http://bitrust.octarineparrot.com/