diff options
Diffstat (limited to 'src/text.rs')
-rw-r--r-- | src/text.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/text.rs b/src/text.rs index 31e67b456..c3ef1ac8e 100644 --- a/src/text.rs +++ b/src/text.rs | |||
@@ -2,9 +2,7 @@ use std::fmt; | |||
2 | use std::ops; | 2 | use std::ops; |
3 | 3 | ||
4 | #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] | 4 | #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] |
5 | pub struct TextUnit( | 5 | pub struct TextUnit(u32); |
6 | pub(crate) u32 | ||
7 | ); | ||
8 | 6 | ||
9 | impl TextUnit { | 7 | impl TextUnit { |
10 | pub fn len_of_char(c: char) -> TextUnit { | 8 | pub fn len_of_char(c: char) -> TextUnit { |