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
|
|
@ -425,7 +425,7 @@ fn encode_index<T>(ebml_w: ebml::writer, buckets: [@[entry<T>]],
|
|||
ebml::end_tag(ebml_w);
|
||||
}
|
||||
|
||||
fn write_str(writer: io::writer, s: str) { writer.write_str(s); }
|
||||
fn write_str(writer: io::writer, &&s: str) { writer.write_str(s); }
|
||||
|
||||
fn write_int(writer: io::writer, &&n: int) {
|
||||
writer.write_be_uint(n as uint, 4u);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue