diff options
| author | bors <bors@rust-lang.org> | 2013-02-15 13:54:49 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-02-15 13:54:49 -0800 |
| commit | 566bcf2225634ee4d4698247fe89364440eb534c (patch) | |
| tree | 75b488c9d3568c5732c43655d461eded9697e272 /src/libstd/net_tcp.rs | |
| parent | 0528329a4fb7765917bda30e9e1805627801d36a (diff) | |
| parent | 91af52784aa1febcd424b9057221298c1f793094 (diff) | |
| download | rust-566bcf2225634ee4d4698247fe89364440eb534c.tar.gz rust-566bcf2225634ee4d4698247fe89364440eb534c.zip | |
auto merge of #4969 : nickdesaulniers/rust/issue3869, r=brson
Issue #3869 review? @nikomatsakis Convert all uses of vec::slice to vec::view Issue #3869 Rename const_view to const_slice Renamed mut_view to mut_slice Fix windows build error. `buf` is borrowed by the call to `as_mut_buf()` and so we must invoke `slice()` outside of that call.
Diffstat (limited to 'src/libstd/net_tcp.rs')
| -rw-r--r-- | src/libstd/net_tcp.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/net_tcp.rs b/src/libstd/net_tcp.rs index 9f750a2bf71..563bc1c203a 100644 --- a/src/libstd/net_tcp.rs +++ b/src/libstd/net_tcp.rs @@ -971,7 +971,8 @@ impl io::Writer for TcpSocketBuf { let w_result = write_common_impl(socket_data_ptr, vec::slice(data, 0, - vec::len(data))); + vec::len(data) + ).to_vec()); if w_result.is_err() { let err_data = w_result.get_err(); log(debug, |
