Fixed unic_langid breaking change.

This commit is contained in:
Samuel Guerra 2023-12-12 18:23:10 -03:00
parent 8c0e92c4df
commit 4e8c4c53f1
1 changed files with 4 additions and 0 deletions

View File

@ -447,5 +447,9 @@ fn from_unic_char_direction(d: unic_langid::CharacterDirection) -> LayoutDirecti
match d {
unic_langid::CharacterDirection::LTR => LayoutDirection::LTR,
unic_langid::CharacterDirection::RTL => LayoutDirection::RTL,
d => {
tracing::warn!("converted {d:?} to LTR");
LayoutDirection::LTR
}
}
}