From c9960ec577fc1de8a9c78f1e660c3c9a08e5bc9f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 3 Dec 2020 08:17:03 +0100 Subject: Fix warning: No need to call into_iter() here, iter() is okay Signed-off-by: Matthias Beyer --- src/config/not_validated.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config') 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)) -- cgit v1.2.3