ntalbs / json_parser

Simple JSON parser in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return `Option<char>` from `peek()` and `peek_next()`

ntalbs opened this issue · comments

I changed peek() and peek_next() to return char instead of Option<char>:
c73ab9f

But it doesn't look correct. Change back, and handle the returned Option<char> correctly, not just use unwrap().