better parsing
This commit is contained in:
parent
bed1d5b38b
commit
53fc09c02f
10 changed files with 416 additions and 45 deletions
|
|
@ -126,7 +126,17 @@ impl<'a> Display for Path<'a> {
|
|||
|
||||
impl<'a> Display for Number<'a> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "{}", self.0)
|
||||
let Self {
|
||||
number,
|
||||
suffix_without_underscore,
|
||||
} = self;
|
||||
write!(f, "{number}")?;
|
||||
if let Some(suffix) = suffix_without_underscore {
|
||||
write!(f, "_")?;
|
||||
write!(f, "{suffix}")?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue