diff options
| author | bors <bors@rust-lang.org> | 2013-07-03 08:16:54 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-07-03 08:16:54 -0700 |
| commit | 0c6fc46c030ab0515a052fa99c9e10c75cfc8184 (patch) | |
| tree | 3840f27f53871ed20b17e82beac7ea9a402dce46 /src/libstd/rt | |
| parent | 1cee9d4c38c628914cc72277854bd97f4f017225 (diff) | |
| parent | cdea73cf5b94784fdc910ab23d5d3455c868d247 (diff) | |
| download | rust-0c6fc46c030ab0515a052fa99c9e10c75cfc8184.tar.gz rust-0c6fc46c030ab0515a052fa99c9e10c75cfc8184.zip | |
auto merge of #7566 : huonw/rust/vec-kill, r=cmr
The last remaining internal iterator in `vec` is `each_permutation`.
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/uv/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/rt/uv/mod.rs b/src/libstd/rt/uv/mod.rs index f50efc079a7..092d7366202 100644 --- a/src/libstd/rt/uv/mod.rs +++ b/src/libstd/rt/uv/mod.rs @@ -40,6 +40,7 @@ use str::raw::from_c_str; use to_str::ToStr; use ptr::RawPtr; use vec; +use vec::ImmutableVector; use ptr; use str; use libc::{c_void, c_int, size_t, malloc, free}; @@ -300,7 +301,7 @@ pub fn vec_to_uv_buf(v: ~[u8]) -> Buf { unsafe { let data = malloc(v.len() as size_t) as *u8; assert!(data.is_not_null()); - do vec::as_imm_buf(v) |b, l| { + do v.as_imm_buf |b, l| { let data = data as *mut u8; ptr::copy_memory(data, b, l) } |
