summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-02 16:06:19 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-01-02 16:13:39 +0100
commit8f9c51c12f3fdcfa9e38d90d6122b3b0edc6e53b (patch)
treea030c1d4a039ab79b8e6eedc9536acb3863ba72a
parent3ca35e4b0cf16ef1672d77b14175084247bc8841 (diff)
Remove unnecessary clone() call
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index a947840..9441973 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -87,7 +87,7 @@ impl LogItem {
// One Regex may contain multiple named capture groups, so a vector
// with all names is prepared here.
let mut als : Vec<String> = Vec::new();
- for name in cnames.clone() {
+ for name in cnames.iter() {
let mut temp = String::from(lid.alias.as_str());
temp.push('.');
temp.push_str(name.as_str());