Skip to content

Commit b1897cb

Browse files
committed
fmt
1 parent 0452760 commit b1897cb

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

sqlx-core/src/mssql/protocol/type_info.rs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,25 +120,27 @@ impl TypeInfo {
120120
// see https://github.com/lovasoa/lcid-to-codepage
121121
Ok(match lcid {
122122
// Arabic locales
123-
0x0401 | 0x3801 | 0x3C01 | 0x1401 | 0x0C01 | 0x0801 | 0x2C01 | 0x3401 |
124-
0x3001 | 0x1001 | 0x1801 | 0x2001 | 0x4001 | 0x2801 | 0x1C01 | 0x2401 |
125-
0x0429 | 0x0492 | 0x0846 | 0x048C | 0x0859 | 0x0420 | 0x0820 | 0x045F |
126-
0x0480 => encoding_rs::WINDOWS_1256,
123+
0x0401 | 0x3801 | 0x3C01 | 0x1401 | 0x0C01 | 0x0801 | 0x2C01 | 0x3401
124+
| 0x3001 | 0x1001 | 0x1801 | 0x2001 | 0x4001 | 0x2801 | 0x1C01 | 0x2401
125+
| 0x0429 | 0x0492 | 0x0846 | 0x048C | 0x0859 | 0x0420 | 0x0820 | 0x045F
126+
| 0x0480 => encoding_rs::WINDOWS_1256,
127127

128128
// Chinese locales
129129
0x0804 | 0x50804 | 0x20804 | 0x1004 | 0x51004 | 0x21004 => encoding_rs::GBK,
130-
0x0C04 | 0x40C04 | 0x1404 | 0x41404 | 0x21404 | 0x0404 | 0x30404 |
131-
0x40404 => encoding_rs::BIG5,
130+
0x0C04 | 0x40C04 | 0x1404 | 0x41404 | 0x21404 | 0x0404 | 0x30404 | 0x40404 => {
131+
encoding_rs::BIG5
132+
}
132133

133134
// Cyrillic locales
134-
0x082C | 0x046D | 0x0423 | 0x0402 | 0x201A | 0x0440 | 0x042F | 0x0450 |
135-
0x0419 | 0x0819 | 0x0485 | 0x0428 | 0x0444 | 0x0422 | 0x0843 | 0x281A |
136-
0x1C1A | 0x301A => encoding_rs::WINDOWS_1251,
135+
0x082C | 0x046D | 0x0423 | 0x0402 | 0x201A | 0x0440 | 0x042F | 0x0450
136+
| 0x0419 | 0x0819 | 0x0485 | 0x0428 | 0x0444 | 0x0422 | 0x0843 | 0x281A
137+
| 0x1C1A | 0x301A => encoding_rs::WINDOWS_1251,
137138

138139
// Central European locales
139-
0x141A | 0x0405 | 0x041A | 0x101A | 0x040E | 0x1040E | 0x0415 | 0x0418 |
140-
0x0818 | 0x041B | 0x0424 | 0x041C | 0x241A | 0x181A | 0x2C1A |
141-
0x0442 => encoding_rs::WINDOWS_1250,
140+
0x141A | 0x0405 | 0x041A | 0x101A | 0x040E | 0x1040E | 0x0415 | 0x0418
141+
| 0x0818 | 0x041B | 0x0424 | 0x041C | 0x241A | 0x181A | 0x2C1A | 0x0442 => {
142+
encoding_rs::WINDOWS_1250
143+
}
142144

143145
// Baltic locales
144146
0x0425 | 0x0427 | 0x0426 => encoding_rs::WINDOWS_1257,

0 commit comments

Comments
 (0)