Small change

This commit is contained in:
Erin 2022-04-02 01:42:13 +02:00 committed by ondra05
parent f7b18ec6ce
commit 306e6cfc8e

View file

@ -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)
} }
} }