From 96624aedc70da96fd9a62bc4dfc6ee57b486aa80 Mon Sep 17 00:00:00 2001 From: baoyachi Date: Thu, 6 Jul 2023 15:23:51 +0800 Subject: [PATCH] fix cargo clippy check --- src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d783500..2849ecd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -570,7 +570,6 @@ fn build_config(log: &LogConfig) -> SimpleResult { fn init_default_log(log: &mut LogConfig) { if log.path.trim().is_empty() { let file_name = std::env::vars() - .into_iter() .filter(|(k, _)| k == "CARGO_PKG_NAME") .map(|(_, v)| v.to_case(Case::Snake)) .collect::>()