浏览代码

Merge pull request #3065 from BlackDex/future-clippy-fixes

Resolve uninlined_format_args clippy warnings
Daniel García 2 年之前
父节点
当前提交
367e1ce289
共有 2 个文件被更改,包括 1 次插入13 次删除
  1. 1 1
      clippy.toml
  2. 0 12
      src/config.rs

+ 1 - 1
clippy.toml

@@ -1 +1 @@
-msrv = "1.60.0"
+msrv = "1.61.0"

+ 0 - 12
src/config.rs

@@ -684,18 +684,6 @@ fn validate_config(cfg: &ConfigItems) -> Result<(), Error> {
         }
     }
 
-    if let Some(log_file) = &cfg.log_file {
-        if std::fs::OpenOptions::new().append(true).create(true).open(log_file).is_err() {
-            err!("Unable to write to log file", log_file);
-        }
-    }
-
-    if let Some(log_file) = &cfg.log_file {
-        if std::fs::OpenOptions::new().append(true).create(true).open(log_file).is_err() {
-            err!("Unable to write to log file", log_file);
-        }
-    }
-
     let dom = cfg.domain.to_lowercase();
     if !dom.starts_with("http://") && !dom.starts_with("https://") {
         err!(