diff options
author | Canop <cano.petrole@gmail.com> | 2022-09-22 21:36:29 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-09-22 21:36:29 +0200 |
commit | b92b296030083e801cb54de56cfeb345ea1383ca (patch) | |
tree | 381c82aa51d09907e6bb058c5a1b488be914c116 /src/command | |
parent | 0c128136e908a1989854d1237699a6bd9aca6fa2 (diff) |
remove some warnings
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/completion.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/completion.rs b/src/command/completion.rs index 0c2b91c..f6c5640 100644 --- a/src/command/completion.rs +++ b/src/command/completion.rs @@ -226,7 +226,7 @@ impl Completions { } }; for ol in lists { - list = list.iter().filter(|c| ol.contains(c)).cloned().collect(); + list.retain(|c| ol.contains(c)); if list.is_empty() { break; } |