Skip to content

Commit 75df9ea

Browse files
committed
Fix compile on nightly
See rust-lang/rust#44208 for context
1 parent f6af157 commit 75df9ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unic/ucd/normal/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ pub const UNICODE_VERSION: UnicodeVersion = include!("tables/unicode_version.rsv
6060
/// for more information.
6161
pub fn compose(a: char, b: char) -> Option<char> {
6262
hangul::compose(a, b).or_else(|| {
63-
canonical_composition(a).and_then(|table| table.find(b).cloned())
63+
canonical_composition(a).and_then(|table| {
64+
CharDataTable::<&'static char>::find(&table, b).cloned()
65+
})
6466
})
6567
}

0 commit comments

Comments
 (0)