Commit b5da4b0
v0.2.4: fix byte[] type, suppress per-variant non_camel_case_types warnings
- parser: map byte[]/Byte[] → Primitive::Bytes and string[]/String[] →
Primitive::String so vendor XSD type attributes with Java-style array
notation no longer produce invalid Rust (Option<byte[]>)
- emitter: emit #[allow(non_camel_case_types)] on each enum variant in
addition to the outer enum attribute — ensures rustc and Clippy suppress
the "variant should have an UpperCamelCase name" warning regardless of
how lint propagation is handled across versions
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent bb66cab commit b5da4b0
3 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
405 | 408 | | |
406 | 409 | | |
407 | 410 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| |||
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
| 169 | + | |
165 | 170 | | |
166 | 171 | | |
| 172 | + | |
167 | 173 | | |
168 | 174 | | |
169 | 175 | | |
| |||
217 | 223 | | |
218 | 224 | | |
219 | 225 | | |
| 226 | + | |
220 | 227 | | |
221 | 228 | | |
| 229 | + | |
222 | 230 | | |
223 | 231 | | |
| 232 | + | |
224 | 233 | | |
225 | 234 | | |
226 | 235 | | |
| |||
231 | 240 | | |
232 | 241 | | |
233 | 242 | | |
| 243 | + | |
234 | 244 | | |
235 | 245 | | |
| 246 | + | |
236 | 247 | | |
237 | 248 | | |
| 249 | + | |
238 | 250 | | |
239 | 251 | | |
| 252 | + | |
240 | 253 | | |
241 | 254 | | |
| 255 | + | |
242 | 256 | | |
243 | 257 | | |
244 | 258 | | |
| |||
312 | 326 | | |
313 | 327 | | |
314 | 328 | | |
| 329 | + | |
315 | 330 | | |
316 | 331 | | |
| 332 | + | |
317 | 333 | | |
318 | 334 | | |
| 335 | + | |
319 | 336 | | |
320 | 337 | | |
| 338 | + | |
321 | 339 | | |
322 | 340 | | |
| 341 | + | |
323 | 342 | | |
324 | 343 | | |
325 | 344 | | |
| |||
330 | 349 | | |
331 | 350 | | |
332 | 351 | | |
| 352 | + | |
333 | 353 | | |
334 | 354 | | |
| 355 | + | |
335 | 356 | | |
336 | 357 | | |
| 358 | + | |
337 | 359 | | |
338 | 360 | | |
| 361 | + | |
339 | 362 | | |
340 | 363 | | |
341 | 364 | | |
| |||
0 commit comments