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

update to rust 2018

This commit is contained in:
Jan Lukas Gernert 2018-12-07 02:19:40 +01:00
parent 6f38c2bc4c
commit b679f2e1fa
3 changed files with 6 additions and 5 deletions

View file

@ -2,6 +2,7 @@
name = "article_scraper"
version = "0.1.0"
authors = ["Jan Lukas Gernert <jangernert@gmail.com>"]
edition = "2018"
[dependencies]
failure = "0.1"

View file

@ -2,7 +2,7 @@ use std;
use url::Url;
use std::path::PathBuf;
use chrono::NaiveDateTime;
use error::{
use crate::error::{
ScraperError,
ScraperErrorKind,
};

View file

@ -19,7 +19,7 @@ mod error;
mod article;
pub mod images;
use article::Article;
use crate::article::Article;
use libxml::parser::Parser;
use libxml::xpath::Context;
use libxml::tree::{
@ -30,7 +30,7 @@ use std::path::PathBuf;
use std::ops::Index;
use failure::ResultExt;
use std::error::Error;
use config::{
use crate::config::{
GrabberConfig,
ConfigCollection
};
@ -39,7 +39,7 @@ use encoding_rs::{
};
use chrono::NaiveDateTime;
use std::str::FromStr;
use images::ImageDownloader;
use crate::images::ImageDownloader;
use self::error::{
ScraperError,
ScraperErrorKind
@ -686,7 +686,7 @@ impl ArticleScraper {
#[cfg(test)]
mod tests {
use ::*;
use crate::*;
#[test]
pub fn golem() {