diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2020-10-13 14:56:42 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2020-10-13 14:56:42 -0700 |
commit | a4c008c26fd599b1025aef2b99e75c324ff78a60 (patch) | |
tree | 85ea2d2808ae15590b853f7c18c3120d5b7fca43 /src/character_classes.rs | |
parent | e5900e7242c2ff2b5aab5b6e2bfdaa618a5b063a (diff) |
Reuse DIGIT character set in HEXDIG
Diffstat (limited to 'src/character_classes.rs')
-rw-r--r-- | src/character_classes.rs | 2 |
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() |