diff --git a/src/config.rs b/src/config.rs index c2fd914..eee67ab 100644 --- a/src/config.rs +++ b/src/config.rs @@ -147,7 +147,7 @@ impl Config { ] .into_iter() .filter_map(|(proxy_type, section)| { - section.enabled.then(move || { + section.enabled.then(|| { ( proxy_type, section diff --git a/src/raw_config.rs b/src/raw_config.rs index 63b0384..a5a7f94 100644 --- a/src/raw_config.rs +++ b/src/raw_config.rs @@ -189,7 +189,7 @@ const CONFIG_ENV: &str = "PROXY_SCRAPER_CHECKER_CONFIG"; pub fn get_config_path() -> compact_str::CompactString { env::var(CONFIG_ENV).map_or_else( - move |_| compact_str::CompactString::const_new("config.toml"), + |_| compact_str::CompactString::const_new("config.toml"), Into::into, ) }