std: str.as_bytes_with_null_consume() => str.to_bytes_with_null()
This commit is contained in:
parent
9c3679a9a2
commit
9a950802ed
1 changed files with 1 additions and 1 deletions
|
|
@ -746,7 +746,7 @@ fn with_envp<T>(env: Option<&[(~str, ~str)]>, cb: &fn(*mut c_void) -> T) -> T {
|
|||
let mut blk = ~[];
|
||||
for es.iter().advance |pair| {
|
||||
let kv = fmt!("%s=%s", pair.first(), pair.second());
|
||||
blk.push_all(kv.as_bytes_with_null_consume());
|
||||
blk.push_all(kv.to_bytes_with_null());
|
||||
}
|
||||
blk.push(0);
|
||||
blk.as_imm_buf(|p, _len|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue