Fix tests for Rust2018

This commit is contained in:
Jordan Petridis 2019-04-06 22:20:03 +03:00
parent 53e9db2f42
commit 73587ff47b
No known key found for this signature in database
GPG Key ID: E8523968931763BE
2 changed files with 2 additions and 4 deletions

View File

@ -212,8 +212,8 @@ mod tests {
use failure::Error;
use futures::Future;
use database::{truncate_db, TEMPDIR};
use utils::get_feed;
use crate::database::{truncate_db, TEMPDIR};
use crate::utils::get_feed;
const URLS: &[(&str, &str)] = {
&[

View File

@ -177,8 +177,6 @@ pub fn get_feed(file_path: &str, id: i32) -> Feed {
#[cfg(test)]
mod tests {
extern crate tempdir;
use self::tempdir::TempDir;
use super::*;
use chrono::Duration;