diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-03 08:17:03 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-03 08:17:03 +0100 |
commit | c9960ec577fc1de8a9c78f1e660c3c9a08e5bc9f (patch) | |
tree | 56d02bb3caf9b4db204c3a10335a29579699f0de /src/config | |
parent | ba2f301e946ee9192229ff67ac9cb6dc90e162d2 (diff) |
Fix warning: No need to call into_iter() here, iter() is okay
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/not_validated.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/not_validated.rs b/src/config/not_validated.rs index 200b1e4..c91a0cb 100644 --- a/src/config/not_validated.rs +++ b/src/config/not_validated.rs @@ -79,7 +79,7 @@ impl<'reg> NotValidatedConfiguration { "InspiredGitHub", "Solarized (dark)", "Solarized (light)", - ].into_iter().any(|allowed_theme| configured_theme == *allowed_theme); + ].iter().any(|allowed_theme| configured_theme == *allowed_theme); if !allowed_theme_present { return Err(anyhow!("Theme not known: {}", configured_theme)) |