From 94101c49beebb7fc8a9b23288a264086d6a2ddb3 Mon Sep 17 00:00:00 2001 From: "Alexander Koz." Date: Fri, 11 Sep 2026 13:23:03 +0400 Subject: [PATCH] fix #311, codegen produces incorrect pattern for macro, broken usage --- string-cache-codegen/lib.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/string-cache-codegen/lib.rs b/string-cache-codegen/lib.rs index 6f01343..efcf719 100644 --- a/string-cache-codegen/lib.rs +++ b/string-cache-codegen/lib.rs @@ -169,11 +169,6 @@ impl AtomType { destination.write_all( self.to_tokens() .to_string() - // Insert some newlines to make the generated code slightly easier to read. - .replace(" [ \"", "[\n\"") - .replace("\" , ", "\",\n") - .replace(" ( \"", "\n( \"") - .replace("; ", ";\n") .as_bytes(), ) } @@ -186,11 +181,6 @@ impl AtomType { destination.write_all( self.to_tokens() .to_string() - // Insert some newlines to make the generated code slightly easier to read. - .replace(" [ \"", "[\n\"") - .replace("\" , ", "\",\n") - .replace(" ( \"", "\n( \"") - .replace("; ", ";\n") .as_bytes(), )?; let str = String::from_utf8(destination).unwrap();