From 7426057368f38d7ebdd5f17ecb9f4e23712e8563 Mon Sep 17 00:00:00 2001 From: Clover Johnson <95094165+callmeclover@users.noreply.github.com> Date: Wed, 24 Apr 2024 13:24:26 -0400 Subject: [PATCH] fix errors --- src/user/auth.rs | 3 ++- src/user/model.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/user/auth.rs b/src/user/auth.rs index a138c303..519742fe 100644 --- a/src/user/auth.rs +++ b/src/user/auth.rs @@ -1,5 +1,6 @@ use std::error::Error; -use sea_orm::{*, prelude::*}; +use sea_orm::{*, prelude::*, entity::*, error::*}; + use crate::user::model::{Entity as ModelEntity, Column as ModelColumn}; pub struct DatabaseConnectix { diff --git a/src/user/model.rs b/src/user/model.rs index f21de5b8..4a8a99cd 100644 --- a/src/user/model.rs +++ b/src/user/model.rs @@ -2,7 +2,7 @@ use std::error::Error; use rustrict::{Censor, Type}; use serde::{Serialize, Deserialize}; use uuid::Uuid; -use sea_orm::{entity::prelude::*, prelude::*}; +use sea_orm::entity::prelude::*; /// What am I? /// A class meant to hold all the values the server uses to compute messages.