From faefa7b3557c4b92e68d7d79585c765350a79247 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Sat, 27 May 2017 13:02:43 +0300 Subject: [PATCH] Fix build on nightly rustc --- src/parse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse.rs b/src/parse.rs index 8fd3a76..118bb05 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -11,7 +11,7 @@ use unicode::regex::{PERLD, PERLS, PERLW}; pub type Result = result::Result; #[derive(Debug)] -enum ParseError { +pub enum ParseError { ClassInvalid(char), ClassMustClose, ClassSetMustClose, @@ -447,7 +447,7 @@ impl Parser { }; } } - + Err(ParseError::EllipsisNotLast) } // Return the next character which follows a `\`.