mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 15:01:16 -03:00
Fix a clippy lint
This commit is contained in:
3
fish-rust/src/env/environment_impl.rs
vendored
3
fish-rust/src/env/environment_impl.rs
vendored
@@ -647,8 +647,7 @@ fn create_export_array(&self) -> Arc<OwningNullTerminatedArray> {
|
||||
);
|
||||
|
||||
// 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('=');
|
||||
|
||||
Reference in New Issue
Block a user