diff --git a/migra-cli/tests/common/mod.rs b/migra-cli/tests/common/mod.rs index 2fc2f7c..64b1bb5 100644 --- a/migra-cli/tests/common/mod.rs +++ b/migra-cli/tests/common/mod.rs @@ -14,7 +14,7 @@ pub const DATABASE_URL_DEFAULT_ENV_NAME: &str = "DATABASE_URL"; pub const DATABASE_URL_ENV_VALUE: &str = "postgres://postgres:postgres@localhost:6000/migra_tests"; pub struct Env { - key: &'static str + key: &'static str, } impl Env { diff --git a/migra-cli/tests/data/Migra_env_empty.toml b/migra-cli/tests/data/Migra_env_empty.toml index 1eeb5b7..bfc342a 100644 --- a/migra-cli/tests/data/Migra_env_empty.toml +++ b/migra-cli/tests/data/Migra_env_empty.toml @@ -1,4 +1,4 @@ -directory = "database" +root = "database" [database] connection = "$DB_URL" diff --git a/migra-cli/tests/data/Migra_url_empty.toml b/migra-cli/tests/data/Migra_url_empty.toml index 0099afe..28aa889 100644 --- a/migra-cli/tests/data/Migra_url_empty.toml +++ b/migra-cli/tests/data/Migra_url_empty.toml @@ -1,4 +1,4 @@ -directory = "database" +root = "database" [database] connection = "postgres://postgres:postgres@localhost:6000/migra_tests" diff --git a/migra-cli/tests/list.rs b/migra-cli/tests/list.rs index 9851c9a..ea84a73 100644 --- a/migra-cli/tests/list.rs +++ b/migra-cli/tests/list.rs @@ -1,7 +1,7 @@ mod common; -use std::io::Write; use common::*; +use std::io::Write; #[test] fn empty_migration_list() -> TestResult { diff --git a/sample/Migra.toml b/sample/Migra.toml index eb1a3a4..b8e853c 100644 --- a/sample/Migra.toml +++ b/sample/Migra.toml @@ -1,4 +1,4 @@ -directory = "database" +root = "database" [database] connection = "postgres://postgres:123456@localhost:5434/migra"