Skip to content

Commit 66cea37

Browse files
committed
Fix from_buf in test cases
1 parent 6986acb commit 66cea37

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libcore/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,7 +1973,7 @@ mod tests {
19731973
// Test on-stack copy-from-buf.
19741974
let a = ~[1, 2, 3];
19751975
let mut ptr = raw::to_ptr(a);
1976-
let b = raw::from_buf(ptr, 3u);
1976+
let b = from_buf(ptr, 3u);
19771977
assert (len(b) == 3u);
19781978
assert (b[0] == 1);
19791979
assert (b[1] == 2);
@@ -1982,7 +1982,7 @@ mod tests {
19821982
// Test on-heap copy-from-buf.
19831983
let c = ~[1, 2, 3, 4, 5];
19841984
ptr = raw::to_ptr(c);
1985-
let d = raw::from_buf(ptr, 5u);
1985+
let d = from_buf(ptr, 5u);
19861986
assert (len(d) == 5u);
19871987
assert (d[0] == 1);
19881988
assert (d[1] == 2);

src/libstd/uv_ll.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ pub mod test {
10481048
as *request_wrapper;
10491049
let buf_base = get_base_from_buf(buf);
10501050
let buf_len = get_len_from_buf(buf);
1051-
let bytes = vec::raw::from_buf(buf_base, buf_len as uint);
1051+
let bytes = vec::from_buf(buf_base, buf_len as uint);
10521052
let read_chan = *((*client_data).read_chan);
10531053
let msg_from_server = str::from_bytes(bytes);
10541054
core::comm::send(read_chan, msg_from_server);
@@ -1223,7 +1223,7 @@ pub mod test {
12231223
buf_base as uint,
12241224
buf_len as uint,
12251225
nread));
1226-
let bytes = vec::raw::from_buf(buf_base, buf_len);
1226+
let bytes = vec::from_buf(buf_base, buf_len);
12271227
let request_str = str::from_bytes(bytes);
12281228

12291229
let client_data = get_data_for_uv_handle(

0 commit comments

Comments
 (0)