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:
Marijn Haverbeke 2011-10-10 13:54:03 +02:00
parent b4bae8fea5
commit 33167f7dec
15 changed files with 34 additions and 38 deletions

View file

@ -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 }
}