[fine] Different source locations
This commit is contained in:
parent
2d233244cf
commit
81a7b09555
2 changed files with 18 additions and 58 deletions
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue