mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-05-20 09:58:04 +00:00
no deprecated code
This commit is contained in:
parent
9ffdadfc8d
commit
5b287e0686
|
@ -152,8 +152,7 @@ const _IMPL_DIESEL_NEW_TYPE_FOR_COLLECTION_ID: () = {
|
|||
{
|
||||
type Expression = Bound<ST, String>;
|
||||
fn as_expression(self) -> Self::Expression {
|
||||
// TODO: deprecated in favor of `.into()` but that fails to compile
|
||||
Bound::new(self.0.into_string())
|
||||
Bound::new(self.0.to_string())
|
||||
}
|
||||
}
|
||||
impl<Kind, ST, DB> FromSql<ST, DB> for CollectionId<Kind>
|
||||
|
|
|
@ -302,8 +302,7 @@ const _IMPL_DIESEL_NEW_TYPE_FOR_OBJECT_ID: () = {
|
|||
{
|
||||
type Expression = Bound<ST, String>;
|
||||
fn as_expression(self) -> Self::Expression {
|
||||
// TODO: deprecated in favor of `.into()` but that fails to compile
|
||||
Bound::new(self.0.into_string())
|
||||
Bound::new(self.0.to_string())
|
||||
}
|
||||
}
|
||||
impl<Kind, ST, DB> FromSql<ST, DB> for ObjectId<Kind>
|
||||
|
|
Loading…
Reference in a new issue