add two more copies required in word-count rs=breakage
This commit is contained in:
parent
ae0ca9c646
commit
fe0f84823a
1 changed files with 2 additions and 2 deletions
|
@ -316,8 +316,8 @@ fn main() {
|
|||
|
||||
let readers: ~[fn~() -> word_reader] = if argv.len() >= 2 {
|
||||
vec::view(argv, 1u, argv.len()).map(|f| {
|
||||
let f = *f;
|
||||
fn~() -> word_reader { file_word_reader(f) }
|
||||
let f = copy *f;
|
||||
fn~() -> word_reader { file_word_reader(copy f) }
|
||||
})
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue