chalk icon indicating copy to clipboard operation
chalk copied to clipboard

refactor(cmd_exec): resolve sequtils.delete deprecation warning

Open ee7 opened this issue 1 year ago • 0 comments

Like https://github.com/crashappsec/chalk/pull/280, a small PR to get rid of deprecation warnings and reduce noise locally (e.g. when running nimble build -d:debug).


Resolve the deprecation warning:

src/commands/cmd_exec.nim(214, 16) Warning: use delete(s, first..last); delete is deprecated [Deprecated]

Nim deprecated the previous form in July 2021 (see commit, source, and changelog) for consistency with changes to system.delete, which previously had surprising behavior when the given index was out of bounds.

ee7 avatar Apr 30 '24 09:04 ee7