aboutsummaryrefslogtreecommitdiff
path: root/backend/src/db
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2021-12-29 16:11:27 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2021-12-29 16:11:27 +0100
commit1fb4a5151bd8cfe6de4d8c19e2066a9281a0b61a (patch)
tree4adc79684acdcd703e2319e3444af66489623ebd /backend/src/db
parent52242b03f1af7f73e73592c2e5ee2bc54813a64d (diff)
downloadplanetwars.dev-1fb4a5151bd8cfe6de4d8c19e2066a9281a0b61a.tar.xz
planetwars.dev-1fb4a5151bd8cfe6de4d8c19e2066a9281a0b61a.zip
migrate to axum
Diffstat (limited to 'backend/src/db')
-rw-r--r--backend/src/db/bots.rs1
-rw-r--r--backend/src/db/users.rs2
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;