From da787a25d7756a3c0fd554a2dc3d90b406a25207 Mon Sep 17 00:00:00 2001 From: Hinton Date: Thu, 25 Apr 2024 10:29:01 +0200 Subject: [PATCH] Remove converter for DecryptedString --- crates/bitwarden/src/uniffi_support.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/crates/bitwarden/src/uniffi_support.rs b/crates/bitwarden/src/uniffi_support.rs index 83f04e0de..bf1eade70 100644 --- a/crates/bitwarden/src/uniffi_support.rs +++ b/crates/bitwarden/src/uniffi_support.rs @@ -1,6 +1,6 @@ use std::num::NonZeroU32; -use bitwarden_crypto::{AsymmetricEncString, DecryptedString, EncString, SensitiveString}; +use bitwarden_crypto::{AsymmetricEncString, EncString, SensitiveString}; use uuid::Uuid; use crate::UniffiCustomTypeConverter; @@ -18,18 +18,6 @@ uniffi::ffi_converter_forward!( crate::UniFfiTag ); -impl UniffiCustomTypeConverter for DecryptedString { - type Builtin = String; - - fn into_custom(val: Self::Builtin) -> uniffi::Result { - Ok(Self::new(Box::new(val))) - } - - fn from_custom(obj: Self) -> Self::Builtin { - (*obj.expose()).to_owned() - } -} - type DateTime = chrono::DateTime; uniffi::custom_type!(DateTime, std::time::SystemTime);