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:
parent
54c10aef4c
commit
5808c0e0c3
|
@ -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())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue