Improved printing

pull/2/head
Mark 2023-03-29 19:03:53 -07:00
parent 3126b4c616
commit de8c461a7b
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 3 additions and 3 deletions

View File

@ -107,12 +107,13 @@ fn main() -> Result<(), std::io::Error> {
)?;
match g {
Ok(Token::Number(v)) => {
Ok(q) => {
write!(
stdout, "\n {}{}={} {v}{}\r\n\n",
stdout, "\n {}{}={} {}{}\r\n\n",
style::Bold,
color::Fg(color::Green),
style::Reset,
q.print(),
color::Fg(color::Reset)
)?;
},
@ -126,7 +127,6 @@ fn main() -> Result<(), std::io::Error> {
color::Fg(color::Reset),
)?;
}
_ => panic!()
}
},