diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-01-24 22:02:04 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-01-24 22:02:04 +0100 |
| commit | 962d3287d9af5654ff203d539cb5f8cbb685ba1a (patch) | |
| tree | 037b14dc7d3f0dd393aac25c9f60aca4b0ded9e5 /src | |
| parent | 3a354f1922858c058633deccf12497fd940c868f (diff) | |
| download | chawan-962d3287d9af5654ff203d539cb5f8cbb685ba1a.tar.gz | |
config: fix compilation on older Nim versions
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/config.nim | 3 |
1 files changed, 2 insertions, 1 deletions
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 = |