Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Jan 22, 2025
1 parent 9e75f0a commit 4d41b01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion temporal_capi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
2 changes: 1 addition & 1 deletion temporal_capi/src/plain_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4d41b01

Please sign in to comment.