Skip to content

Commit cdd7614

Browse files
committed
feat: remove unnecessary wasm target checks for Timestamp type
1 parent f841e1e commit cdd7614

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

crypto-ffi/src/timestamp.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@
99
//! This can be removed once we fully migrate to Kotlin Multiplatform and
1010
//! stop generating JVM/Android bindings.
1111
12-
#[cfg(not(target_family = "wasm"))]
1312
use std::time::{Duration, SystemTime};
1413

1514
/// A wrapper around `SystemTime` for FFI bindings with custom type mapping per language.
16-
#[cfg(not(target_family = "wasm"))]
1715
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
1816
pub struct Timestamp(pub SystemTime);
1917

20-
#[cfg(not(target_family = "wasm"))]
2118
impl Timestamp {
2219
/// Creates a new `Timestamp` from a `SystemTime`.
2320
pub fn new(time: SystemTime) -> Self {
@@ -35,19 +32,16 @@ impl Timestamp {
3532
}
3633
}
3734

38-
#[cfg(not(target_family = "wasm"))]
3935
impl From<SystemTime> for Timestamp {
4036
fn from(time: SystemTime) -> Self {
4137
Self(time)
4238
}
4339
}
4440

45-
#[cfg(not(target_family = "wasm"))]
4641
impl From<Timestamp> for SystemTime {
4742
fn from(timestamp: Timestamp) -> Self {
4843
timestamp.0
4944
}
5045
}
5146

52-
#[cfg(not(target_family = "wasm"))]
5347
uniffi::custom_type!(Timestamp, SystemTime);

0 commit comments

Comments
 (0)