From c5a354267a7cf8680d6e8821b97d9ce2fbaa5c23 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Tue, 19 Dec 2023 16:21:06 -0700 Subject: [PATCH] chore(module-index): update API usage with `sea-orm` References: SeaQL/sea-orm#1740 References: SeaQL/sea-orm#1755 Signed-off-by: Fletcher Nichol --- lib/module-index-server/src/models/si_module.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/module-index-server/src/models/si_module.rs b/lib/module-index-server/src/models/si_module.rs index a61e02357a..b4abc8b855 100644 --- a/lib/module-index-server/src/models/si_module.rs +++ b/lib/module-index-server/src/models/si_module.rs @@ -1,8 +1,4 @@ -use sea_orm::{ - entity::prelude::*, - sea_query::{self, IdenStatic}, - TryGetError, -}; +use sea_orm::{entity::prelude::*, sea_query, DeriveIden, TryGetError}; use serde::{Deserialize, Serialize}; use std::str::FromStr; use ulid::Ulid; @@ -161,7 +157,7 @@ impl sea_orm::TryGetable for ModuleId { } } -#[derive(IdenStatic, Clone, Copy)] +#[derive(DeriveIden, Clone, Copy)] struct UlidIdentType; impl sea_query::ValueType for ModuleId {