mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Fix a clippy lint
This commit is contained in:
parent
1cba28c120
commit
89376d5fd0
1 changed files with 1 additions and 2 deletions
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…
Reference in a new issue