Skip to content

Commit

Permalink
ffi
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Nov 1, 2024
1 parent 11bd918 commit 0df3fe7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ffi/capi/bindings/dart/TimeZoneInfo.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ffi/capi/src/timezone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ pub mod ffi {
/// Sets the `zone_variant` field from a string.
///
/// Returns null if the string is not a valid zone variant.
#[diplomat::rust_link(icu::timezone::ZoneVariant, Struct, compact)]
#[diplomat::rust_link(icu::timezone::ZoneVariant, Enum, compact)]
#[diplomat::rust_link(icu::timezone::ZoneVariant::from_str, FnInStruct, hidden)]
pub fn try_set_zone_variant(&mut self, id: &DiplomatStr) -> Option<()> {
self.zone_variant = match id {
Expand All @@ -223,7 +223,7 @@ pub mod ffi {
}

/// Clears the `zone_variant` field.
#[diplomat::rust_link(icu::timezone::ZoneVariant, Struct, compact)]
#[diplomat::rust_link(icu::timezone::ZoneVariant, Enum, compact)]
pub fn clear_zone_variant(&mut self) {
self.zone_variant.take();
}
Expand All @@ -232,7 +232,7 @@ pub mod ffi {
///
/// Returns null if the `zone_variant` field is empty.
#[diplomat::rust_link(icu::timezone::TimeZoneInfo::zone_variant, FnInStruct)]
#[diplomat::rust_link(icu::timezone::ZoneVariant, Struct, compact)]
#[diplomat::rust_link(icu::timezone::ZoneVariant, Enum, compact)]
#[diplomat::attr(auto, getter)]
pub fn zone_variant(&self, write: &mut diplomat_runtime::DiplomatWrite) -> Option<()> {
let _infallible = write.write_str(match self.zone_variant {
Expand Down
2 changes: 1 addition & 1 deletion ffi/capi/tests/missing_apis.txt
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ icu::timezone::ZoneOffsetCalculator#Struct
icu::timezone::ZoneOffsetCalculator::compute_offsets_from_time_zone#FnInStruct
icu::timezone::ZoneOffsetCalculator::new#FnInStruct
icu::timezone::ZoneOffsets#Struct
icu::timezone::ZoneVariant::into_option#FnInStruct
icu::timezone::ZoneVariant::into_option#FnInEnum
icu::timezone::models::AtTime#Enum
icu::timezone::models::Base#Enum
icu::timezone::models::Full#Enum

0 comments on commit 0df3fe7

Please sign in to comment.