no deprecated code

This commit is contained in:
Felix Ableitner 2023-12-05 12:35:01 +01:00
parent 9ffdadfc8d
commit 5b287e0686
2 changed files with 2 additions and 4 deletions

View file

@ -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>

View file

@ -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>