Skip to content

Commit b0073d9

Browse files
committed
unicode-table-gen: more clippy fixes
1 parent 0959305 commit b0073d9

File tree

1 file changed

+8
-8
lines changed
  • src/tools/unicode-table-generator/src

1 file changed

+8
-8
lines changed

src/tools/unicode-table-generator/src/main.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,15 @@ fn load_data() -> UnicodeData {
160160
.push(Codepoints::Single(row.codepoint));
161161
}
162162

163-
if let Some(mapped) = row.simple_lowercase_mapping {
164-
if mapped != row.codepoint {
165-
to_lower.insert(row.codepoint.value(), (mapped.value(), 0, 0));
166-
}
163+
if let Some(mapped) = row.simple_lowercase_mapping
164+
&& mapped != row.codepoint
165+
{
166+
to_lower.insert(row.codepoint.value(), (mapped.value(), 0, 0));
167167
}
168-
if let Some(mapped) = row.simple_uppercase_mapping {
169-
if mapped != row.codepoint {
170-
to_upper.insert(row.codepoint.value(), (mapped.value(), 0, 0));
171-
}
168+
if let Some(mapped) = row.simple_uppercase_mapping
169+
&& mapped != row.codepoint
170+
{
171+
to_upper.insert(row.codepoint.value(), (mapped.value(), 0, 0));
172172
}
173173
}
174174

0 commit comments

Comments
 (0)