From 3b82122acd576e800378f66e5bfeaf04d805523e Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Tue, 4 Jun 2024 12:05:25 +0000 Subject: [PATCH] adapt for rustc-dep-of-std build --- src/tables.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tables.rs b/src/tables.rs index 9ff3792..0d05294 100644 --- a/src/tables.rs +++ b/src/tables.rs @@ -15,6 +15,8 @@ pub const UNICODE_VERSION: (u8, u8, u8) = (15, 1, 0); pub mod charwidth { + use core::convert::TryFrom; + /// Returns the [UAX #11](https://www.unicode.org/reports/tr11/) based width of `c` by /// consulting a multi-level lookup table. /// If `is_cjk == true`, ambiguous width characters are treated as double width; otherwise,