aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2020-10-13 14:56:42 -0700
committerRichard Walters <rwalters@digitalstirling.com>2020-10-13 14:56:42 -0700
commita4c008c26fd599b1025aef2b99e75c324ff78a60 (patch)
tree85ea2d2808ae15590b853f7c18c3120d5b7fca43 /src
parente5900e7242c2ff2b5aab5b6e2bfdaa618a5b063a (diff)
Reuse DIGIT character set in HEXDIG
Diffstat (limited to 'src')
-rw-r--r--src/character_classes.rs2
1 files changed, 1 insertions, 1 deletions
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<HashSet<char>> = Lazy::new(||
// This is the character set containing just the characters allowed
// in a hexadecimal digit.
pub static HEXDIG: Lazy<HashSet<char>> = Lazy::new(||
- ('0'..='9')
+ DIGIT.iter().copied()
.chain('A'..='F')
.chain('a'..='f')
.collect()