Skip to content

Commit

Permalink
Resolve uninlined_format_args clippy warnings
Browse files Browse the repository at this point in the history
The upcomming release of Rust 1.67.0 will warn on `uninlined_format_args`.
This PR resolves that by inlining all these items.
It also looks nicer.
  • Loading branch information
BlackDex authored and dani-garcia committed Jan 9, 2023
1 parent 00855ee commit 912ad64
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -690,12 +690,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);
}
}

let dom = cfg.domain.to_lowercase();
if !dom.starts_with("http://") && !dom.starts_with("https://") {
err!(
Expand Down

0 comments on commit 912ad64

Please sign in to comment.