From 5ea89644c9db05fe550382a6896851777d886aa8 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 9 Jul 2026 19:22:10 -0500 Subject: [PATCH] style: Make clippy happy --- crates/dictgen/src/trie.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/dictgen/src/trie.rs b/crates/dictgen/src/trie.rs index 4dbe35ed..bcf85780 100644 --- a/crates/dictgen/src/trie.rs +++ b/crates/dictgen/src/trie.rs @@ -64,10 +64,9 @@ impl Trie { return None; }; debug_assert!(index < 26); - if let Some(next) = n[index as usize].as_ref() { + { + let next = n[index as usize].as_ref()?; child = next; - } else { - return None; } } TrieChild::Flat(t) => { @@ -113,7 +112,7 @@ mod codegen { "pub static {name}: dictgen::Trie<{value_type}> = dictgen::Trie {{" )?; writeln!(file, " root: &{},", gen_node_name(name, ""))?; - writeln!(file, " unicode: &{},", &unicode_table_name)?; + writeln!(file, " unicode: &{unicode_table_name},")?; writeln!( file, " range: {}..={},",