Move stuff from hammond_data/src/lib.rs into utils.

This commit is contained in:
Jordan Petridis
2017-11-18 20:55:19 +02:00
parent 563f249a48
commit a6dbf65575
6 changed files with 32 additions and 34 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ use rayon::prelude::*;
use rand::Rng;
use test::Bencher;
use hammond_data::run_migration_on;
use hammond_data::utils::run_migration_on;
use hammond_data::models::NewSource;
use hammond_data::feed::{index, Feed};
use hammond_data::Database;
@@ -51,7 +51,7 @@ fn get_temp_db() -> TempDB {
.join(format!("hammonddb_{}.db", rng.gen::<usize>()));
let db = SqliteConnection::establish(db_path.to_str().unwrap()).unwrap();
::run_migration_on(&db).unwrap();
run_migration_on(&db).unwrap();
TempDB(tmp_dir, db_path, db)
}