Alphabet should be static

This commit is contained in:
Gwilym Inzani 2024-04-03 10:58:25 +01:00
parent e21d06994f
commit fe78711736

View file

@ -107,7 +107,7 @@ impl core::fmt::Display for Frames {
} }
mod gwilym_encoding { mod gwilym_encoding {
const ALPHABET: &[u8] = b"0123456789=ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"; static ALPHABET: &[u8] = b"0123456789=ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz";
pub fn encode_16(input: u16) -> [u8; 3] { pub fn encode_16(input: u16) -> [u8; 3] {
let input = input as usize; let input = input as usize;