[fine] Different source locations

This commit is contained in:
John Doty 2024-01-01 09:05:13 -08:00
parent 2d233244cf
commit 81a7b09555
2 changed files with 18 additions and 58 deletions

View file

@ -89,9 +89,9 @@ impl<'a> Token<'a> {
}
}
impl<'a> Into<String> for Token<'a> {
fn into(self) -> String {
self.as_str().to_string()
impl<'a> std::fmt::Display for Token<'a> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.as_str())
}
}