Skip to content

Commit 2d7cb3c

Browse files
committed
---
yaml --- r: 120423 b: refs/heads/dist-snap c: ce11f19 h: refs/heads/master i: 120421: e54154f 120419: 955c065 120415: a92bada v: v3
1 parent bca8388 commit 2d7cb3c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 78bc758c94ae9c99b8e4e82f7d18b6733c8eb949
9+
refs/heads/dist-snap: ce11f19695f0615bdb9de3702519920584c6102d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustuv/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,21 +353,21 @@ impl Loop {
353353
pub struct UvError(c_int);
354354

355355
impl UvError {
356-
pub fn name(&self) -> ~str {
356+
pub fn name(&self) -> StrBuf {
357357
unsafe {
358358
let inner = match self { &UvError(a) => a };
359359
let name_str = uvll::uv_err_name(inner);
360360
assert!(name_str.is_not_null());
361-
from_c_str(name_str)
361+
from_c_str(name_str).to_strbuf()
362362
}
363363
}
364364

365-
pub fn desc(&self) -> ~str {
365+
pub fn desc(&self) -> StrBuf {
366366
unsafe {
367367
let inner = match self { &UvError(a) => a };
368368
let desc_str = uvll::uv_strerror(inner);
369369
assert!(desc_str.is_not_null());
370-
from_c_str(desc_str)
370+
from_c_str(desc_str).to_strbuf()
371371
}
372372
}
373373

branches/dist-snap/src/librustuv/net.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,15 +851,15 @@ mod test {
851851
fn connect_close_ip4() {
852852
match TcpWatcher::connect(local_loop(), next_test_ip4(), None) {
853853
Ok(..) => fail!(),
854-
Err(e) => assert_eq!(e.name(), "ECONNREFUSED".to_owned()),
854+
Err(e) => assert_eq!(e.name(), "ECONNREFUSED".to_strbuf()),
855855
}
856856
}
857857

858858
#[test]
859859
fn connect_close_ip6() {
860860
match TcpWatcher::connect(local_loop(), next_test_ip6(), None) {
861861
Ok(..) => fail!(),
862-
Err(e) => assert_eq!(e.name(), "ECONNREFUSED".to_owned()),
862+
Err(e) => assert_eq!(e.name(), "ECONNREFUSED".to_strbuf()),
863863
}
864864
}
865865

branches/dist-snap/src/librustuv/pipe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ mod tests {
338338
fn bind_err() {
339339
match PipeListener::bind(local_loop(), &"path/to/nowhere".to_c_str()) {
340340
Ok(..) => fail!(),
341-
Err(e) => assert_eq!(e.name(), "EACCES".to_owned()),
341+
Err(e) => assert_eq!(e.name(), "EACCES".to_strbuf()),
342342
}
343343
}
344344

0 commit comments

Comments
 (0)