Skip to content

Commit

Permalink
fontique: Use icu_properties for feature name. (#74)
Browse files Browse the repository at this point in the history
This makes it match the value in `Cargo.toml` and was an error in my
previous changes.
  • Loading branch information
waywardmonkeys authored Jun 6, 2024
1 parent 8f2deea commit 6730337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fontique/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Script {
}

/// Returns the associated [`icu_properties::Script`] value.
#[cfg(feature = "icu-properties")]
#[cfg(feature = "icu_properties")]
pub fn icu_script(self) -> Option<icu_properties::Script> {
let mapper = icu_properties::Script::name_to_enum_mapper();
let s = core::str::from_utf8(&self.0).ok()?;
Expand Down Expand Up @@ -68,7 +68,7 @@ impl From<&str> for Script {
}
}

#[cfg(feature = "icu-properties")]
#[cfg(feature = "icu_properties")]
impl From<icu_properties::Script> for Script {
fn from(value: icu_properties::Script) -> Self {
Self(
Expand Down

0 comments on commit 6730337

Please sign in to comment.