File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/tools/unicode-table-generator/src Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -160,15 +160,15 @@ fn load_data() -> UnicodeData {
160
160
. push ( Codepoints :: Single ( row. codepoint ) ) ;
161
161
}
162
162
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 ) ) ;
167
167
}
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 ) ) ;
172
172
}
173
173
}
174
174
You can’t perform that action at this time.
0 commit comments