From 4d41b018e8b077d954e7e72ba47c2d33b0a2b57c Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 22 Jan 2025 10:48:41 -0800 Subject: [PATCH] fix --- temporal_capi/Cargo.toml | 2 +- temporal_capi/src/plain_time.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/temporal_capi/Cargo.toml b/temporal_capi/Cargo.toml index 3c013bc8..b86c474c 100644 --- a/temporal_capi/Cargo.toml +++ b/temporal_capi/Cargo.toml @@ -12,5 +12,5 @@ exclude.workspace = true [dependencies] diplomat = "0.9.0" diplomat-runtime = "0.9.0" -temporal_rs = { version = "0.0.4", path = ".." } +temporal_rs = { version = "0.0.4", path = "..", default-features = false } icu_calendar = { version = "2.0.0-beta1", default-features = false} diff --git a/temporal_capi/src/plain_time.rs b/temporal_capi/src/plain_time.rs index a20a63b4..ae9d9aa7 100644 --- a/temporal_capi/src/plain_time.rs +++ b/temporal_capi/src/plain_time.rs @@ -166,7 +166,7 @@ pub mod ffi { write: &mut DiplomatWrite, ) -> Result<(), TemporalError> { // TODO this double-allocates, an API returning a Writeable or impl Write would be better - let string = self.0.to_ixdtf_string(options.into())?; + let string = self.0.as_ixdtf_string(options.into())?; // throw away the error, the write itself should always succeed let _ = write.write_str(&string);