From 2d5217dbb76593a1dba1ff3db3ca0221c457e687 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 30 Dec 2017 15:29:09 +0300 Subject: More readable lexer tests --- src/text.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/text.rs') 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; use std::ops; #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] -pub struct TextUnit( - pub(crate) u32 -); +pub struct TextUnit(u32); impl TextUnit { pub fn len_of_char(c: char) -> TextUnit { -- cgit v1.2.3