From 962d3287d9af5654ff203d539cb5f8cbb685ba1a Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 24 Jan 2025 22:02:04 +0100 Subject: config: fix compilation on older Nim versions --- src/config/config.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/config/config.nim b/src/config/config.nim index c73ac5e4..6a903758 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -215,7 +215,8 @@ proc fromJS(ctx: JSContext; val: JSValue; res: var ChaPathResolved): Opt[void] = proc `[]=`(a: var ActionMap; b: string; c: sink string) = a.t[b] = c -proc `[]`*(a: ActionMap; b: string): lent string = +# Can't be lent string on 2.0.4 yet. +template `[]`*(a: ActionMap; b: string): string = a.t[b] proc contains*(a: ActionMap; b: string): bool = -- cgit