diff --git a/src/folding/mapping/lookup.rs b/src/folding/mapping/lookup.rs index d1204dc4..1f8f0553 100644 --- a/src/folding/mapping/lookup.rs +++ b/src/folding/mapping/lookup.rs @@ -3,7 +3,7 @@ // This source is autogenerated. Do not modify it directly. // To make modfications to this code, see `scripts/gen_case_lookups.rb`. // -// Last generated on 2020-12-30 17:16:47 UTC. +// Last generated on 2021-05-17 14:03:38 UTC. // // Unicode version: // CaseFolding-13.0.0.txt @@ -15,7 +15,7 @@ use super::{Mapping, Mode}; #[must_use] #[allow(clippy::match_same_arms)] #[allow(clippy::too_many_lines)] -pub fn lookup(c: char, mode: Mode) -> Mapping { +pub const fn lookup(c: char, mode: Mode) -> Mapping { let codepoint = c as u32; let char_bytes = codepoint.to_be_bytes(); let mid_byte = char_bytes[2]; diff --git a/tests/full_fold_exhaustive.rs b/tests/full_fold_exhaustive.rs index 0e738477..7fde1cb3 100644 --- a/tests/full_fold_exhaustive.rs +++ b/tests/full_fold_exhaustive.rs @@ -3,7 +3,7 @@ // This source is autogenerated. Do not modify it directly. // To make modfications to this code, see `scripts/gen_case_lookups.rb`. // -// Last generated on 2020-12-30 17:16:47 UTC. +// Last generated on 2021-05-17 14:03:38 UTC. // // Unicode version: // CaseFolding-13.0.0.txt diff --git a/tests/full_turkic_fold_exhaustive.rs b/tests/full_turkic_fold_exhaustive.rs index ff4f960f..48d60bb4 100644 --- a/tests/full_turkic_fold_exhaustive.rs +++ b/tests/full_turkic_fold_exhaustive.rs @@ -3,7 +3,7 @@ // This source is autogenerated. Do not modify it directly. // To make modfications to this code, see `scripts/gen_case_lookups.rb`. // -// Last generated on 2020-12-30 17:16:47 UTC. +// Last generated on 2021-05-17 14:03:38 UTC. // // Unicode version: // CaseFolding-13.0.0.txt