Skip to content

Commit a5f3406

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 14526 b: refs/heads/try c: 8285951 h: refs/heads/master v: v3
1 parent 1a7b4bb commit a5f3406

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 1d3e08d8c6248c4e8c668bf53ff0a308873da31d
5+
refs/heads/try: 828595151cc714e1deabca763765e7d7633d97ec
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libstd/uvtmp.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ native mod rustrt {
7979
fn rust_uvtmp_uv_loop_set_data(
8080
loop: *ctypes::void,
8181
data: *uv_loop_data);
82-
fn rust_uvtmp_uv_bind_op_cb(loop: *ctypes::void, cb: *u8) -> *ctypes::void;
82+
fn rust_uvtmp_uv_bind_op_cb(loop: *ctypes::void, cb: *u8)
83+
-> *ctypes::void;
8384
fn rust_uvtmp_uv_stop_op_cb(handle: *ctypes::void);
8485
fn rust_uvtmp_uv_run(loop_handle: *ctypes::void);
8586
fn rust_uvtmp_uv_close(handle: *ctypes::void, cb: *u8);
@@ -162,7 +163,6 @@ mod uv {
162163
map::new_bytes_hash();
163164
let close_callbacks: map::map<[u8], fn~()> =
164165
map::new_bytes_hash();
165-
166166
let async_cbs: map::map<[u8], fn~(uv_handle)> =
167167
map::new_bytes_hash();
168168
let timer_cbs: map::map<[u8], fn~(uv_handle)> =
@@ -190,14 +190,14 @@ mod uv {
190190
comm::send(rust_loop_chan, uv_end);
191191
};
192192
}
193-
193+
194194
msg_run_in_bg {
195195
task::spawn_sched(task::manual_threads(1u)) {||
196196
// this call blocks
197197
rustrt::rust_uvtmp_uv_run(loop_handle);
198198
};
199199
}
200-
200+
201201
msg_close(handle, cb) {
202202
let id = get_id_from_handle(handle);
203203
close_callbacks.insert(id, cb);
@@ -228,7 +228,7 @@ mod uv {
228228
cb();
229229
};
230230
}
231-
231+
232232
msg_async_init(callback, after_cb) {
233233
// create a new async handle
234234
// with the id as the handle's
@@ -308,7 +308,7 @@ mod uv {
308308
let the_timer = id_to_handle.get(id);
309309
after_cb(the_timer);
310310
}
311-
311+
312312
uv_end() {
313313
keep_going = false;
314314
}
@@ -353,7 +353,7 @@ mod uv {
353353

354354
fn close(h: uv_handle, cb: fn~()) {
355355
let loop_chan = get_loop_chan_from_handle(h);
356-
comm::send(loop_chan, msg_close(h, cb));
356+
comm::send(loop_chan, msg_close(h, cb));
357357
}
358358

359359
fn timer_init(loop: uv_loop, after_cb: fn~(uv_handle)) {
@@ -403,7 +403,7 @@ mod uv {
403403
ret rand::mk_rng().gen_bytes(16u);
404404
}
405405
fn get_handle_id_from(buf: *u8) -> [u8] unsafe {
406-
ret vec::unsafe::from_buf(buf, 16u);
406+
ret vec::unsafe::from_buf(buf, 16u);
407407
}
408408

409409
fn get_loop_chan_from_data(data: *uv_loop_data)
@@ -475,7 +475,6 @@ mod uv {
475475
rustrt::rust_uvtmp_uv_timer_stop(handle);
476476
comm::send(loop_chan, uv_timer_stop(id, after_cb));
477477
}
478-
479478
_ { fail "unknown form of uv_operation received"; }
480479
}
481480
op_pending = comm::peek(op_port);
@@ -538,7 +537,7 @@ mod uv {
538537
// close cb
539538
process_close_common(id, data);
540539
}
541-
540+
542541
crust fn process_close_timer(
543542
id_buf: *u8,
544543
handle_ptr: *ctypes::void,
@@ -549,7 +548,6 @@ mod uv {
549548
process_close_common(id, data);
550549
}
551550

552-
553551
}
554552

555553
#[test]
@@ -588,7 +586,7 @@ fn test_uvtmp_uv_timer() {
588586
};
589587
};
590588
};
591-
};
589+
};
592590
uv::run(test_loop);
593591
assert comm::recv(exit_port);
594592
}

0 commit comments

Comments
 (0)