Adjust function signatures to allow for vecs being immediate
Some code was relying on vectors being implicitly by-reference (as non-immediate value). This adds the necessary &&-sigils. Closes #1021
This commit is contained in:
parent
b4bae8fea5
commit
33167f7dec
15 changed files with 34 additions and 38 deletions
|
|
@ -276,7 +276,7 @@ fn make_run_args(config: config, _props: test_props, testfile: str) ->
|
|||
|
||||
fn split_maybe_args(argstr: option::t<str>) -> [str] {
|
||||
fn rm_whitespace(v: [str]) -> [str] {
|
||||
fn flt(s: str) -> option::t<str> {
|
||||
fn flt(&&s: str) -> option::t<str> {
|
||||
if !is_whitespace(s) { option::some(s) } else { option::none }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue