diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-29 16:11:27 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2021-12-29 16:11:27 +0100 |
commit | 1fb4a5151bd8cfe6de4d8c19e2066a9281a0b61a (patch) | |
tree | 4adc79684acdcd703e2319e3444af66489623ebd /backend/src/db | |
parent | 52242b03f1af7f73e73592c2e5ee2bc54813a64d (diff) | |
download | planetwars.dev-1fb4a5151bd8cfe6de4d8c19e2066a9281a0b61a.tar.xz planetwars.dev-1fb4a5151bd8cfe6de4d8c19e2066a9281a0b61a.zip |
migrate to axum
Diffstat (limited to 'backend/src/db')
-rw-r--r-- | backend/src/db/bots.rs | 1 | ||||
-rw-r--r-- | backend/src/db/users.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/backend/src/db/bots.rs b/backend/src/db/bots.rs index d359e28..bc9cb11 100644 --- a/backend/src/db/bots.rs +++ b/backend/src/db/bots.rs @@ -2,7 +2,6 @@ use diesel::prelude::*; use serde::{Deserialize, Serialize}; use crate::schema::{bots, code_bundles}; -use crate::DbConn; use chrono; #[derive(Insertable)] diff --git a/backend/src/db/users.rs b/backend/src/db/users.rs index 0817766..663f173 100644 --- a/backend/src/db/users.rs +++ b/backend/src/db/users.rs @@ -1,4 +1,4 @@ -use crate::{schema::users, DbConn}; +use crate::schema::users; use argon2; use diesel::{prelude::*, PgConnection}; use rand::Rng; |