diff --git a/src/fetch/collection_id.rs b/src/fetch/collection_id.rs index 4297ca3..8c796f4 100644 --- a/src/fetch/collection_id.rs +++ b/src/fetch/collection_id.rs @@ -152,8 +152,7 @@ const _IMPL_DIESEL_NEW_TYPE_FOR_COLLECTION_ID: () = { { type Expression = Bound; 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 FromSql for CollectionId diff --git a/src/fetch/object_id.rs b/src/fetch/object_id.rs index 248d9ba..dc4340c 100644 --- a/src/fetch/object_id.rs +++ b/src/fetch/object_id.rs @@ -302,8 +302,7 @@ const _IMPL_DIESEL_NEW_TYPE_FOR_OBJECT_ID: () = { { type Expression = Bound; 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 FromSql for ObjectId