forked from AbleScript/ablescript
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> {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
if f.alternate() {
|
||||
write!(f, "{:#?}", self.item)
|
||||
write!(f, "{:#?} @ {:?}", self.item, self.span)
|
||||
} else {
|
||||
write!(f, "{:?}", self.item)
|
||||
}?;
|
||||
|
||||
write!(f, " @ {:?}", self.span)
|
||||
write!(f, "{:?} @ {:?}", self.item, self.span)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue