diff options
author | Melody Horn <melody@boringcactus.com> | 2021-06-29 22:44:11 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-06-29 22:44:11 -0600 |
commit | 9829bbfcd57c57e237c6aacb96a78d0b9f5bab68 (patch) | |
tree | 43dc643d7b592d9abc4c5f89121e249ccb597d7d /src/cli/make_migrations.rs | |
parent | 9dd7f2256a82f95096d928aaef70d15603152ebc (diff) | |
download | tosin-9829bbfcd57c57e237c6aacb96a78d0b9f5bab68.tar.gz tosin-9829bbfcd57c57e237c6aacb96a78d0b9f5bab68.zip |
lol no generics
Diffstat (limited to 'src/cli/make_migrations.rs')
-rw-r--r-- | src/cli/make_migrations.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/make_migrations.rs b/src/cli/make_migrations.rs index b0cd341..e0653b6 100644 --- a/src/cli/make_migrations.rs +++ b/src/cli/make_migrations.rs @@ -7,7 +7,7 @@ use structopt::StructOpt; use crate::db::migration::{CreateModelOption, DatabaseChange, Migration}; use crate::db::models::{Field, ModelMeta}; -use crate::{db::backend::Connectable, Settings, UrlMap}; +use crate::{Settings, UrlMap}; #[derive(StructOpt)] /// Generate migrations @@ -101,7 +101,7 @@ impl From<&[Migration]> for AppTablesState { } impl MakeMigrations { - pub fn execute(self, _urls: UrlMap, settings: Settings<impl Connectable>) { + pub fn execute(self, _urls: UrlMap, settings: Settings) { for app in settings.installed_apps { let expected_table_state = AppTablesState::from(app.models); let actual_table_state = AppTablesState::from(app.migrations); |