Small change
This commit is contained in:
parent
3b829d7e55
commit
eae118a78e
|
@ -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