From eae118a78eadbdf6fe2db160b8054f3542f1124b Mon Sep 17 00:00:00 2001 From: Erin Date: Sat, 2 Apr 2022 01:42:13 +0200 Subject: [PATCH] Small change --- ablescript/src/ast.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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) + } } }