From 52cc9eef0e0a40357449ee031d0d8e1a3c892de9 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Mon, 30 Oct 2023 19:44:51 +0000 Subject: [PATCH] fixup! [utf-16] Don't expose ...U16 types in the base module, just make the utf16 submodule public. --- benches/basic.rs | 2 +- benches/udhr.rs | 2 +- src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benches/basic.rs b/benches/basic.rs index 3a592a9..0e47c2f 100644 --- a/benches/basic.rs +++ b/benches/basic.rs @@ -15,8 +15,8 @@ extern crate unicode_bidi; use test::Bencher; -use unicode_bidi::BidiInfo; use unicode_bidi::utf16::BidiInfo as BidiInfoU16; +use unicode_bidi::BidiInfo; fn to_utf16(s: &str) -> Vec { s.encode_utf16().collect() diff --git a/benches/udhr.rs b/benches/udhr.rs index dad17ab..6ef225b 100644 --- a/benches/udhr.rs +++ b/benches/udhr.rs @@ -15,8 +15,8 @@ extern crate unicode_bidi; use test::Bencher; -use unicode_bidi::BidiInfo; use unicode_bidi::utf16::BidiInfo as BidiInfoU16; +use unicode_bidi::BidiInfo; fn to_utf16(s: &str) -> Vec { s.encode_utf16().collect() diff --git a/src/lib.rs b/src/lib.rs index 19ced83..9d65c2e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1088,7 +1088,7 @@ mod tests { use super::*; use utf16::{ - BidiInfo as BidiInfoU16, InitialInfo as InitialInfoU16, Paragraph as ParagraphU16 + BidiInfo as BidiInfoU16, InitialInfo as InitialInfoU16, Paragraph as ParagraphU16, }; #[test]