Fix a clippy lint

This commit is contained in:
ridiculousfish 2023-11-18 11:19:36 -08:00
parent 1cba28c120
commit 89376d5fd0

View file

@ -647,8 +647,7 @@ impl EnvScopedImpl {
);
// Construct the export list: a list of strings of the form key=value.
let mut export_list: Vec<CString> = Vec::new();
export_list.reserve(vals.len());
let mut export_list: Vec<CString> = Vec::with_capacity(vals.len());
for (key, val) in vals.into_iter() {
let mut str = key;
str.push('=');