unicode-table-gen: edition 2024

This commit is contained in:
Marijn Schouten 2025-07-18 13:45:33 +00:00
parent 15acb0e0ec
commit 0959305986
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "unicode-table-generator"
version = "0.1.0"
edition = "2021"
edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -272,7 +272,7 @@ impl Canonicalized {
// for canonical when possible.
while let Some((&to, _)) = mappings
.iter()
.find(|(&to, _)| to == 0)
.find(|&(&to, _)| to == 0)
.or_else(|| mappings.iter().max_by_key(|m| m.1.len()))
{
// Get the mapping with the most entries. Currently, no mapping can