From 09a06f66c4f9b92bec103ef54ce4f4ffe0273611 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 20 Nov 2024 10:23:55 -0800 Subject: [PATCH] Change decimal digits lookup table from static to const --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9be0fdc..5543faf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -124,7 +124,7 @@ mod private { } } -static DEC_DIGITS_LUT: [u8; 200] = *b"\ +const DEC_DIGITS_LUT: [u8; 200] = *b"\ 0001020304050607080910111213141516171819\ 2021222324252627282930313233343536373839\ 4041424344454647484950515253545556575859\