Small change
This commit is contained in:
parent
f7b18ec6ce
commit
306e6cfc8e
|
@ -29,12 +29,10 @@ impl<T> Spanned<T> {
|
||||||
impl<T: Debug> Debug for Spanned<T> {
|
impl<T: Debug> Debug for Spanned<T> {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
if f.alternate() {
|
if f.alternate() {
|
||||||
write!(f, "{:#?}", self.item)
|
write!(f, "{:#?} @ {:?}", self.item, self.span)
|
||||||
} else {
|
} else {
|
||||||
write!(f, "{:?}", self.item)
|
write!(f, "{:?} @ {:?}", self.item, self.span)
|
||||||
}?;
|
}
|
||||||
|
|
||||||
write!(f, " @ {:?}", self.span)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue