mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 04:39:39 +08:00
Fix a clippy lint
This commit is contained in:
parent
1cba28c120
commit
89376d5fd0
3
fish-rust/src/env/environment_impl.rs
vendored
3
fish-rust/src/env/environment_impl.rs
vendored
@ -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('=');
|
||||
|
Loading…
x
Reference in New Issue
Block a user