Skip to content

Commit

Permalink
Fix icu_capi cargo-all-features
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Jun 8, 2023
1 parent a58a33a commit ad9e056
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ffi/diplomat/src/data_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ pub mod ffi {
#[cfg(feature = "icu_decimal")]
use crate::errors::ffi::ICU4XError;
use alloc::boxed::Box;
use icu_provider::{AnyPayload, DataPayload};
use icu_provider::AnyPayload;
#[cfg(feature = "icu_decimal")]
use icu_provider::DataPayload;

#[diplomat::opaque]
/// A generic data struct to be used by ICU4X
Expand Down
2 changes: 1 addition & 1 deletion ffi/diplomat/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub mod decimal;
pub mod displaynames;
#[cfg(feature = "icu_decimal")]
pub mod fixed_decimal;
#[cfg(feature = "icu_timezone")]
#[cfg(any(feature = "icu_datetime", feature = "icu_timezone"))]
pub mod iana_bcp47_mapper;
#[cfg(feature = "icu_list")]
pub mod list;
Expand Down

0 comments on commit ad9e056

Please sign in to comment.