1 2 3 4 5 6 7 8 9 10
use super::*; impl Display for NumberLiteralNode { fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { match &self.unit { Some(s) => write!(f, "{}{}", self.value, s), None => write!(f, "{}", self.value), } } }