aboutsummaryrefslogtreecommitdiff
path: root/src/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.rs')
-rw-r--r--src/text.rs4
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;
2use std::ops; 2use std::ops;
3 3
4#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] 4#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
5pub struct TextUnit( 5pub struct TextUnit(u32);
6 pub(crate) u32
7);
8 6
9impl TextUnit { 7impl TextUnit {
10 pub fn len_of_char(c: char) -> TextUnit { 8 pub fn len_of_char(c: char) -> TextUnit {