blob: 5282caeff2527526a35950289b2bd1f8b8281224 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
pub struct Span {
pub tag: String,
pub text: String,
}
impl std::fmt::Debug for Span {
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
let tag = format!("{:?}", self.tag);
write!(f, "{tag:>20}: {:?}", self.text)
}
}
|