From cb433c355d168a0a0c0de2538b372f1fab18b868 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Fri, 20 Dec 2019 07:52:44 +0300 Subject: Fix some deprecations --- src/args.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/args.nim') diff --git a/src/args.nim b/src/args.nim index 5018b12..fd03ee0 100644 --- a/src/args.nim +++ b/src/args.nim @@ -168,7 +168,7 @@ iterator items*(op: OptionPair): OptionKey = proc filter*(args: seq[Argument], removeMatches: bool, keepTargets: bool, pairs: varargs[OptionPair]): seq[Argument] = let pairsSeq = @pairs - let argsSet = lc[x | (y <- pairsSeq, x <- y), OptionKey].toSet + let argsSet = lc[x | (y <- pairsSeq, x <- y), OptionKey].toHashSet args.filter(arg => (arg.isShort and (removeMatches xor (arg.key, false) in argsSet)) or (arg.isLong and (removeMatches xor (arg.key, true) in argsSet)) or -- cgit v1.2.3-70-g09d2