fix: use the value from matching instead of unwrapping

This commit is contained in:
Seymur Bagirov 2024-11-19 06:58:57 +04:00
parent cd5fae595c
commit 4df4107b77

View File

@ -28,8 +28,8 @@ pub fn run(src: &str) {
report(err.line, "", &err.msg); report(err.line, "", &err.msg);
} }
} }
Ok(_) => { Ok(tokens) => {
for token in tokens.unwrap() { for token in tokens {
println!("{}", token); println!("{}", token);
} }
} }