From e177a338c4e2c9d2670044c5a84319a534c8c8df Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Wed, 20 Oct 2021 12:17:30 +0800 Subject: [PATCH] Minimal trait bounds --- src/entity/active_enum.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/entity/active_enum.rs b/src/entity/active_enum.rs index 68c58c64..7e17000f 100644 --- a/src/entity/active_enum.rs +++ b/src/entity/active_enum.rs @@ -1,9 +1,8 @@ use crate::{ColumnDef, DbErr, TryGetable}; use sea_query::{Nullable, Value, ValueType}; -use std::fmt::Debug; pub trait ActiveEnum: Sized { - type Value: Sized + Send + Debug + PartialEq + Into + ValueType + Nullable + TryGetable; + type Value: Into + ValueType + Nullable + TryGetable; fn to_value(&self) -> Self::Value;