As discussed in issue #3 It seems collect defaults to collecting into an array which doesn't work with a collection of Strings because Strings vary in size and their size cannot be known at compile time. To work around this I collect the args into a Vec instead and pass that in. Also I think the first call to matches was missing an & on the args (first) parameter.
As discussed in issue #3 It seems
collect
defaults to collecting into an array which doesn't work with a collection ofString
s becauseString
s vary in size and their size cannot be known at compile time. To work around this I collect the args into aVec
instead and pass that in. Also I think the first call tomatches
was missing an&
on theargs
(first) parameter.