Skip to content

Commit

Permalink
Remove converter for DecryptedString
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Apr 25, 2024
1 parent 0d40054 commit da787a2
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions crates/bitwarden/src/uniffi_support.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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<Self> {
Ok(Self::new(Box::new(val)))
}

fn from_custom(obj: Self) -> Self::Builtin {
(*obj.expose()).to_owned()
}
}

type DateTime = chrono::DateTime<chrono::Utc>;
uniffi::custom_type!(DateTime, std::time::SystemTime);

Expand Down

0 comments on commit da787a2

Please sign in to comment.