diff options
author | c-blake <c-blake@users.noreply.github.com> | 2023-11-29 21:36:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 22:36:47 +0100 |
commit | beeacc86ff8b0fb6e1507a4a9462c93d8a0eb989 (patch) | |
tree | 4dfc9753bbdfd4b39866820905fb91ce032dde16 /lib/std | |
parent | 96513b2506d9057744da9926986181294a3da653 (diff) | |
download | Nim-beeacc86ff8b0fb6e1507a4a9462c93d8a0eb989.tar.gz |
Silence several Hint[Performance] warnings (#23003)
With `--mm:arc` one gets the "implicit copy; if possible, rearrange your program's control flow" `Performance` warnings without these `move`s.
Diffstat (limited to 'lib/std')
-rw-r--r-- | lib/std/cmdline.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/cmdline.nim b/lib/std/cmdline.nim index 29c357d9d..a57fb76a4 100644 --- a/lib/std/cmdline.nim +++ b/lib/std/cmdline.nim @@ -138,7 +138,7 @@ proc parseCmdLine*(c: string): seq[string] {. while i < c.len and c[i] > ' ': add(a, c[i]) inc(i) - add(result, a) + add(result, move a) when defined(nimdoc): # Common forward declaration docstring block for parameter retrieval procs. |