From a4c008c26fd599b1025aef2b99e75c324ff78a60 Mon Sep 17 00:00:00 2001 From: Richard Walters Date: Tue, 13 Oct 2020 14:56:42 -0700 Subject: Reuse DIGIT character set in HEXDIG --- src/character_classes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/character_classes.rs b/src/character_classes.rs index 4b13f01..cb4d202 100644 --- a/src/character_classes.rs +++ b/src/character_classes.rs @@ -20,7 +20,7 @@ pub static DIGIT: Lazy> = Lazy::new(|| // This is the character set containing just the characters allowed // in a hexadecimal digit. pub static HEXDIG: Lazy> = Lazy::new(|| - ('0'..='9') + DIGIT.iter().copied() .chain('A'..='F') .chain('a'..='f') .collect() -- cgit v1.2.3