From 2a5cb71ef63f2c16a108e85663506fd670c87609 Mon Sep 17 00:00:00 2001 From: Saem Ghani Date: Fri, 20 Oct 2023 12:50:49 -0700 Subject: [PATCH] small efficiency improvement Co-authored-by: zerbina <100542850+zerbina@users.noreply.github.com> --- tools/dust/spec.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dust/spec.nim b/tools/dust/spec.nim index 64c6313788b..f860d3e7997 100644 --- a/tools/dust/spec.nim +++ b/tools/dust/spec.nim @@ -70,7 +70,7 @@ proc next*(remains: Remains): PNode = proc massageMessage*(s: string): string = result = s.splitLines()[0] - for c in {';', ':'}: + for c in [';', ':']: let i = find(result, c) if i != -1: result = result[0 .. i - 1]