Fix tests for Rust2018
This commit is contained in:
parent
53e9db2f42
commit
73587ff47b
@ -212,8 +212,8 @@ mod tests {
|
|||||||
use failure::Error;
|
use failure::Error;
|
||||||
use futures::Future;
|
use futures::Future;
|
||||||
|
|
||||||
use database::{truncate_db, TEMPDIR};
|
use crate::database::{truncate_db, TEMPDIR};
|
||||||
use utils::get_feed;
|
use crate::utils::get_feed;
|
||||||
|
|
||||||
const URLS: &[(&str, &str)] = {
|
const URLS: &[(&str, &str)] = {
|
||||||
&[
|
&[
|
||||||
|
|||||||
@ -177,8 +177,6 @@ pub fn get_feed(file_path: &str, id: i32) -> Feed {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
extern crate tempdir;
|
|
||||||
|
|
||||||
use self::tempdir::TempDir;
|
use self::tempdir::TempDir;
|
||||||
use super::*;
|
use super::*;
|
||||||
use chrono::Duration;
|
use chrono::Duration;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user