From 5b287e0686dd217b9def2f56ca5a57049594b99b Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 5 Dec 2023 12:35:01 +0100 Subject: [PATCH] no deprecated code --- src/fetch/collection_id.rs | 3 +-- src/fetch/object_id.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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