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);