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

readability stub

This commit is contained in:
Jan Lukas Gernert 2022-10-08 23:10:26 +02:00
parent 273ddd832c
commit d906f6b7fe
5 changed files with 42 additions and 21 deletions

View file

@ -1,7 +1,7 @@
use chrono::{DateTime, Utc};
use std::fs::File;
use std::io::{Error, ErrorKind, Write};
use std::path::PathBuf;
use std::fs::File;
use url::Url;
pub struct Article {
@ -28,6 +28,9 @@ impl Article {
}
}
Err(Error::new(ErrorKind::NotFound, "Article does not contain HTML"))
Err(Error::new(
ErrorKind::NotFound,
"Article does not contain HTML",
))
}
}