From 306e6cfc8e370bc7adfe12cabdf0a4a5bc177269 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 7bec17a7..6b16cbaf 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) + } } }