File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed
branches/try2/src/librustuv Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: fac0d4e135540a4cb45b49a018d9c1e86fe7eea2
8
+ refs/heads/try2: fa82ef23b800a10209732e1af2558eea87e218e8
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pub struct GetAddrInfoRequest;
33
33
34
34
impl GetAddrInfoRequest {
35
35
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 > {
37
37
assert ! ( node. is_some( ) || service. is_some( ) ) ;
38
38
let ( _c_node, c_node_ptr) = match node {
39
39
Some ( n) => {
@@ -134,7 +134,7 @@ fn each_ai_flag(_f: |c_int, ai::Flag|) {
134
134
}
135
135
136
136
// 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 > {
138
138
unsafe {
139
139
let mut addr = addr. handle ;
140
140
@@ -180,6 +180,6 @@ pub fn accum_addrinfo(addr: &Addrinfo) -> ~[ai::Info] {
180
180
}
181
181
}
182
182
183
- return addrs. move_iter ( ) . collect ( ) ;
183
+ addrs
184
184
}
185
185
}
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ impl Process {
40
40
/// Returns either the corresponding process object or an error which
41
41
/// occurred.
42
42
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
+ {
44
45
let cwd = config. cwd . map ( |s| s. to_c_str ( ) ) ;
45
46
let mut io = vec ! [ config. stdin, config. stdout, config. stderr] ;
46
47
for slot in config. extra_io . iter ( ) {
@@ -102,7 +103,7 @@ impl Process {
102
103
} ) ;
103
104
104
105
match ret {
105
- Ok ( p) => Ok ( ( p, ret_io. move_iter ( ) . collect ( ) ) ) ,
106
+ Ok ( p) => Ok ( ( p, ret_io) ) ,
106
107
Err ( e) => Err ( e) ,
107
108
}
108
109
}
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ impl IoFactory for UvIoFactory {
178
178
}
179
179
180
180
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 > {
182
182
let r = GetAddrInfoRequest :: run ( & self . loop_ , host, servname, hint) ;
183
183
r. map_err ( uv_error_to_io_error)
184
184
}
@@ -272,7 +272,7 @@ impl IoFactory for UvIoFactory {
272
272
273
273
fn spawn ( & mut self , config : ProcessConfig )
274
274
-> Result < ( Box < rtio:: RtioProcess : Send > ,
275
- ~ [ Option < Box < rtio:: RtioPipe : Send > > ] ) ,
275
+ Vec < Option < Box < rtio:: RtioPipe : Send > > > ) ,
276
276
IoError >
277
277
{
278
278
match Process :: spawn ( self , config) {
You can’t perform that action at this time.
0 commit comments