diff options
Diffstat (limited to 'src/libcore/io.rs')
| -rw-r--r-- | src/libcore/io.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/io.rs b/src/libcore/io.rs index 865b8013fb0..fd0fcbbe1c1 100644 --- a/src/libcore/io.rs +++ b/src/libcore/io.rs @@ -737,7 +737,7 @@ pub fn BytesWriter() -> BytesWriter { pub fn with_bytes_writer(f: fn(Writer)) -> ~[u8] { let wr = @BytesWriter(); f(wr as Writer); - wr.buf.check_out(|buf| buf) + wr.buf.check_out(|buf| move buf) } pub fn with_str_writer(f: fn(Writer)) -> ~str { @@ -747,7 +747,7 @@ pub fn with_str_writer(f: fn(Writer)) -> ~str { v.push(0); assert str::is_utf8(v); - unsafe { move ::cast::transmute(v) } + unsafe { move ::cast::transmute(move v) } } // Utility functions |
