Skip to content

Commit 9a95080

Browse files
committed
std: str.as_bytes_with_null_consume() => str.to_bytes_with_null()
1 parent 9c3679a commit 9a95080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/run.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ fn with_envp<T>(env: Option<&[(~str, ~str)]>, cb: &fn(*mut c_void) -> T) -> T {
746746
let mut blk = ~[];
747747
for es.iter().advance |pair| {
748748
let kv = fmt!("%s=%s", pair.first(), pair.second());
749-
blk.push_all(kv.as_bytes_with_null_consume());
749+
blk.push_all(kv.to_bytes_with_null());
750750
}
751751
blk.push(0);
752752
blk.as_imm_buf(|p, _len|

0 commit comments

Comments
 (0)