1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-08 16:40:00 +02:00

clippy fixes

This commit is contained in:
Jan Lukas Gernert 2022-10-07 09:20:10 +02:00
parent 8c2af14871
commit 69659da983
5 changed files with 51 additions and 54 deletions

View file

@ -18,7 +18,7 @@ impl Article {
if let Some(ref html) = self.html {
if let Ok(()) = std::fs::create_dir_all(&path) {
let mut file_name = match self.title.clone() {
Some(file_name) => file_name.replace("/", "_"),
Some(file_name) => file_name.replace('/', "_"),
None => "Unknown Title".to_owned(),
};
file_name.push_str(".html");