Remove generic impl for From<T> 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.
This commit is contained in:
bitfl0wer 2024-08-18 22:17:04 +02:00
parent 54c10aef4c
commit 5808c0e0c3
No known key found for this signature in database
GPG Key ID: 8D90CA11485CD14D
1 changed files with 3 additions and 6 deletions

View File

@ -53,12 +53,9 @@ impl Display for Snowflake {
} }
} }
impl<T> From<T> for Snowflake impl From<u64> for Snowflake {
where fn from(item: u64) -> Self {
T: Into<u64>, Self(item)
{
fn from(item: T) -> Self {
Self(item.into())
} }
} }