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/lexer/ptr.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lexer/ptr.rs') diff --git a/src/lexer/ptr.rs b/src/lexer/ptr.rs index d441b826b..b380117e6 100644 --- a/src/lexer/ptr.rs +++ b/src/lexer/ptr.rs @@ -56,6 +56,7 @@ impl<'s> Ptr<'s> { } fn chars(&self) -> Chars { - self.text[self.len.0 as usize ..].chars() + let len: u32 = self.len.into(); + self.text[len as usize ..].chars() } } -- cgit v1.2.3