Skip to content

Commit b218e72

Browse files
committed
---
yaml --- r: 151469 b: refs/heads/try2 c: fa82ef2 h: refs/heads/master i: 151467: 46d27b9 v: v3
1 parent 5acb4c8 commit b218e72

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: fac0d4e135540a4cb45b49a018d9c1e86fe7eea2
8+
refs/heads/try2: fa82ef23b800a10209732e1af2558eea87e218e8
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustuv/addrinfo.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub struct GetAddrInfoRequest;
3333

3434
impl GetAddrInfoRequest {
3535
pub fn run(loop_: &Loop, node: Option<&str>, service: Option<&str>,
36-
hints: Option<ai::Hint>) -> Result<~[ai::Info], UvError> {
36+
hints: Option<ai::Hint>) -> Result<Vec<ai::Info>, UvError> {
3737
assert!(node.is_some() || service.is_some());
3838
let (_c_node, c_node_ptr) = match node {
3939
Some(n) => {
@@ -134,7 +134,7 @@ fn each_ai_flag(_f: |c_int, ai::Flag|) {
134134
}
135135

136136
// Traverse the addrinfo linked list, producing a vector of Rust socket addresses
137-
pub fn accum_addrinfo(addr: &Addrinfo) -> ~[ai::Info] {
137+
pub fn accum_addrinfo(addr: &Addrinfo) -> Vec<ai::Info> {
138138
unsafe {
139139
let mut addr = addr.handle;
140140

@@ -180,6 +180,6 @@ pub fn accum_addrinfo(addr: &Addrinfo) -> ~[ai::Info] {
180180
}
181181
}
182182

183-
return addrs.move_iter().collect();
183+
addrs
184184
}
185185
}

branches/try2/src/librustuv/process.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ impl Process {
4040
/// Returns either the corresponding process object or an error which
4141
/// occurred.
4242
pub fn spawn(io_loop: &mut UvIoFactory, config: process::ProcessConfig)
43-
-> Result<(Box<Process>, ~[Option<PipeWatcher>]), UvError> {
43+
-> Result<(Box<Process>, Vec<Option<PipeWatcher>>), UvError>
44+
{
4445
let cwd = config.cwd.map(|s| s.to_c_str());
4546
let mut io = vec![config.stdin, config.stdout, config.stderr];
4647
for slot in config.extra_io.iter() {
@@ -102,7 +103,7 @@ impl Process {
102103
});
103104

104105
match ret {
105-
Ok(p) => Ok((p, ret_io.move_iter().collect())),
106+
Ok(p) => Ok((p, ret_io)),
106107
Err(e) => Err(e),
107108
}
108109
}

branches/try2/src/librustuv/uvio.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl IoFactory for UvIoFactory {
178178
}
179179

180180
fn get_host_addresses(&mut self, host: Option<&str>, servname: Option<&str>,
181-
hint: Option<ai::Hint>) -> Result<~[ai::Info], IoError> {
181+
hint: Option<ai::Hint>) -> Result<Vec<ai::Info>, IoError> {
182182
let r = GetAddrInfoRequest::run(&self.loop_, host, servname, hint);
183183
r.map_err(uv_error_to_io_error)
184184
}
@@ -272,7 +272,7 @@ impl IoFactory for UvIoFactory {
272272

273273
fn spawn(&mut self, config: ProcessConfig)
274274
-> Result<(Box<rtio::RtioProcess:Send>,
275-
~[Option<Box<rtio::RtioPipe:Send>>]),
275+
Vec<Option<Box<rtio::RtioPipe:Send>>>),
276276
IoError>
277277
{
278278
match Process::spawn(self, config) {

0 commit comments

Comments
 (0)