diff --git a/ablescript/src/ast.rs b/ablescript/src/ast.rs index 7bec17a..6b16cba 100644 --- a/ablescript/src/ast.rs +++ b/ablescript/src/ast.rs @@ -29,12 +29,10 @@ impl Spanned { impl Debug for Spanned { 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) + } } }