From 5808c0e0c3cfd5d2a93f6937a556d35eefefbffe Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sun, 18 Aug 2024 22:17:04 +0200 Subject: [PATCH] Remove generic impl for From for Snowflake For some reason, this trait bound conflicts with another trait bound from the sqlx-pg-uint crate, even though I personally don't get why. --- src/types/utils/snowflake.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/types/utils/snowflake.rs b/src/types/utils/snowflake.rs index 46f892a..3b75ea0 100644 --- a/src/types/utils/snowflake.rs +++ b/src/types/utils/snowflake.rs @@ -53,12 +53,9 @@ impl Display for Snowflake { } } -impl From for Snowflake -where - T: Into, -{ - fn from(item: T) -> Self { - Self(item.into()) +impl From for Snowflake { + fn from(item: u64) -> Self { + Self(item) } }