Skip to content

Commit 6011f83

Browse files
committed
std: minor cleanup
1 parent b5d77d2 commit 6011f83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/rt/borrowck.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ unsafe fn fail_borrowed(box: *mut raw::Box<()>, file: *c_char, line: size_t) {
7777
None => { // not recording borrows
7878
let msg = "borrowed";
7979
do msg.as_c_str |msg_p| {
80-
sys::begin_unwind_(msg_p as *c_char, file, line);
80+
sys::begin_unwind_(msg_p, file, line);
8181
}
8282
}
8383
Some(borrow_list) => { // recording borrows
@@ -93,7 +93,7 @@ unsafe fn fail_borrowed(box: *mut raw::Box<()>, file: *c_char, line: size_t) {
9393
}
9494
}
9595
do msg.as_c_str |msg_p| {
96-
sys::begin_unwind_(msg_p as *c_char, file, line)
96+
sys::begin_unwind_(msg_p, file, line)
9797
}
9898
}
9999
}
@@ -232,7 +232,7 @@ pub unsafe fn unrecord_borrow(a: *u8, old_ref_count: uint,
232232
if br.box != a || br.file != file || br.line != line {
233233
let err = fmt!("wrong borrow found, br=%?", br);
234234
do err.as_c_str |msg_p| {
235-
sys::begin_unwind_(msg_p as *c_char, file, line)
235+
sys::begin_unwind_(msg_p, file, line)
236236
}
237237
}
238238
borrow_list

0 commit comments

Comments
 (0)