diff options
Diffstat (limited to 'src/db/models')
-rw-r--r-- | src/db/models/envvar.rs | 2 | ||||
-rw-r--r-- | src/db/models/githash.rs | 2 | ||||
-rw-r--r-- | src/db/models/image.rs | 2 | ||||
-rw-r--r-- | src/db/models/submit.rs | 15 |
4 files changed, 5 insertions, 16 deletions
diff --git a/src/db/models/envvar.rs b/src/db/models/envvar.rs index 24403d6..f883661 100644 --- a/src/db/models/envvar.rs +++ b/src/db/models/envvar.rs @@ -1,5 +1,3 @@ -use std::ops::Deref; - use anyhow::Error; use anyhow::Result; use diesel::PgConnection; diff --git a/src/db/models/githash.rs b/src/db/models/githash.rs index bcd14fe..df7937c 100644 --- a/src/db/models/githash.rs +++ b/src/db/models/githash.rs @@ -1,5 +1,3 @@ -use std::ops::Deref; - use anyhow::Error; use anyhow::Result; use diesel::PgConnection; diff --git a/src/db/models/image.rs b/src/db/models/image.rs index de0b2cf..225bac7 100644 --- a/src/db/models/image.rs +++ b/src/db/models/image.rs @@ -1,5 +1,3 @@ -use std::ops::Deref; - use anyhow::Error; use anyhow::Result; use diesel::PgConnection; diff --git a/src/db/models/submit.rs b/src/db/models/submit.rs index 37f5189..1f81584 100644 --- a/src/db/models/submit.rs +++ b/src/db/models/submit.rs @@ -1,20 +1,15 @@ -use std::ops::Deref; - -use anyhow::anyhow; -use anyhow::Error; use anyhow::Context; +use anyhow::Error; use anyhow::Result; +use chrono::NaiveDateTime; use diesel::PgConnection; use diesel::prelude::*; -use chrono::NaiveDateTime; -use diesel::sql_types::Uuid; -use diesel::sql_types::Jsonb; -use crate::schema::submits::*; -use crate::schema::submits; +use crate::db::models::GitHash; use crate::db::models::Image; use crate::db::models::Package; -use crate::db::models::GitHash; +use crate::schema::submits::*; +use crate::schema::submits; #[derive(Queryable)] pub struct Submit { |