Use char/byte literals instead of single-char/byte string literals.

This commit is contained in:
Dan Gohman
2019-08-13 17:17:37 -07:00
committed by Jakub Konka
parent 2809be666a
commit 05852977ac
3 changed files with 10 additions and 10 deletions

View File

@@ -110,7 +110,7 @@ impl WasiCtxBuilder {
.into_iter()
.map(|(k, v)| {
let mut pair = k.into_bytes();
pair.extend_from_slice(b"=");
pair.push(b'=');
pair.extend_from_slice(v.to_bytes_with_nul());
// constructing a new CString from existing CStrings is safe
unsafe { CString::from_vec_unchecked(pair) }