From 71cae79b02e1579a90a703b437bd7615f3126084 Mon Sep 17 00:00:00 2001 From: Folkert Date: Fri, 4 Feb 2022 23:00:10 +0100 Subject: [PATCH] fix annoying spaces debug_assert failure --- compiler/fmt/src/def.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/fmt/src/def.rs b/compiler/fmt/src/def.rs index e3cae69f2a..8ea8ed9639 100644 --- a/compiler/fmt/src/def.rs +++ b/compiler/fmt/src/def.rs @@ -46,7 +46,9 @@ impl<'a> Formattable for Def<'a> { indent + INDENT, ); } else { - buf.push_str(" : "); + buf.spaces(1); + buf.push_str(":"); + buf.spaces(1); loc_annotation.format_with_options( buf, Parens::NotNeeded,