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:
parent
8c2af14871
commit
69659da983
5 changed files with 51 additions and 54 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue