diff options
| author | Marijn Schouten <mhkbst@gmail.com> | 2025-07-18 13:45:33 +0000 |
|---|---|---|
| committer | Marijn Schouten <mhkbst@gmail.com> | 2025-07-18 13:50:20 +0000 |
| commit | 09593059867b066d23776e00a2ce31c370ec9277 (patch) | |
| tree | e37d2ee2689899c643dffecce113531a9a0840b5 /src | |
| parent | 15acb0e0ec849453d9db928821cecc552bb51bfd (diff) | |
| download | rust-09593059867b066d23776e00a2ce31c370ec9277.tar.gz rust-09593059867b066d23776e00a2ce31c370ec9277.zip | |
unicode-table-gen: edition 2024
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/unicode-table-generator/Cargo.toml | 2 | ||||
| -rw-r--r-- | src/tools/unicode-table-generator/src/raw_emitter.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/unicode-table-generator/Cargo.toml b/src/tools/unicode-table-generator/Cargo.toml index f8a500922d0..3ca6e9e316f 100644 --- a/src/tools/unicode-table-generator/Cargo.toml +++ b/src/tools/unicode-table-generator/Cargo.toml @@ -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 diff --git a/src/tools/unicode-table-generator/src/raw_emitter.rs b/src/tools/unicode-table-generator/src/raw_emitter.rs index e1e77af9283..e9e0efc4594 100644 --- a/src/tools/unicode-table-generator/src/raw_emitter.rs +++ b/src/tools/unicode-table-generator/src/raw_emitter.rs @@ -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 |
