diff --git a/scripts/unicode.py b/scripts/unicode.py index 1da9036..c7e52ba 100755 --- a/scripts/unicode.py +++ b/scripts/unicode.py @@ -585,6 +585,8 @@ def emit_module( module.write( """ 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,