mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
unicode-table-gen: more clippy fixes
This commit is contained in:
@@ -160,15 +160,15 @@ fn load_data() -> UnicodeData {
|
||||
.push(Codepoints::Single(row.codepoint));
|
||||
}
|
||||
|
||||
if let Some(mapped) = row.simple_lowercase_mapping {
|
||||
if mapped != row.codepoint {
|
||||
to_lower.insert(row.codepoint.value(), (mapped.value(), 0, 0));
|
||||
}
|
||||
if let Some(mapped) = row.simple_lowercase_mapping
|
||||
&& mapped != row.codepoint
|
||||
{
|
||||
to_lower.insert(row.codepoint.value(), (mapped.value(), 0, 0));
|
||||
}
|
||||
if let Some(mapped) = row.simple_uppercase_mapping {
|
||||
if mapped != row.codepoint {
|
||||
to_upper.insert(row.codepoint.value(), (mapped.value(), 0, 0));
|
||||
}
|
||||
if let Some(mapped) = row.simple_uppercase_mapping
|
||||
&& mapped != row.codepoint
|
||||
{
|
||||
to_upper.insert(row.codepoint.value(), (mapped.value(), 0, 0));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user