error: casting integer literal to `u32` is unnecessary
--> src/api.rs:624:43
|
624 | || width == 2_u32 && value >= 0x80 as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= note: `-D clippy::unnecessary-cast` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/api.rs:625:43
|
625 | || width == 3_u32 && value >= 0x800 as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `0x800_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/api.rs:626:43
|
626 | || width == 4_u32 && value >= 0x10000 as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x10000_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/emitter.rs:2209:35
|
2209 | if value_0 <= 0xff as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0xff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/emitter.rs:2214:42
|
2214 | } else if value_0 <= 0xffff as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xffff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:274:59
|
274 | ... || width == 2_u32 && value >= 0x80 as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:275:59
|
275 | ... || width == 3_u32 && value >= 0x800 as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `0x800_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:276:59
|
276 | ... || width == 4_u32 && value >= 0x10000 as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x10000_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:286:37
|
286 | if value >= 0xd800 as libc::c_uint && value <= 0xdfff as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xd800_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:286:72
|
286 | if value >= 0xd800 as libc::c_uint && value <= 0xdfff as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xdfff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:287:40
|
287 | ... || value > 0x10ffff as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x10ffff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:330:36
|
330 | if value & 0xfc00 as libc::c_uint == 0xdc00 as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xfc00_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:330:62
|
330 | if value & 0xfc00 as libc::c_uint == 0xdc00 as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xdc00_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:339:36
|
339 | if value & 0xfc00 as libc::c_uint == 0xd800 as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xfc00_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:339:62
|
339 | if value & 0xfc00 as libc::c_uint == 0xd800 as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xd800_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:365:45
|
365 | ... if value2 & 0xfc00 as libc::c_uint != 0xdc00 as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xfc00_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:365:71
|
365 | ... if value2 & 0xfc00 as libc::c_uint != 0xdc00 as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xdc00_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:374:41
|
374 | ... value = (0x10000 as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x10000_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:375:60
|
375 | ... .wrapping_add((value & 0x3ff as libc::c_uint) << 10)
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `0x3ff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:376:60
|
376 | ... .wrapping_add(value2 & 0x3ff as libc::c_uint);
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `0x3ff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:388:27
|
388 | if !(value == 0x9 as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^ help: try: `0x9_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:389:29
|
389 | || value == 0xa as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^ help: try: `0xa_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:390:29
|
390 | || value == 0xd as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^ help: try: `0xd_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:391:29
|
391 | || value >= 0x20 as libc::c_uint && value <= 0x7e as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x20_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:391:62
|
391 | || value >= 0x20 as libc::c_uint && value <= 0x7e as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x7e_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:392:29
|
392 | || value == 0x85 as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x85_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:393:29
|
393 | || value >= 0xa0 as libc::c_uint && value <= 0xd7ff as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0xa0_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:393:62
|
393 | || value >= 0xa0 as libc::c_uint && value <= 0xd7ff as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xd7ff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:394:29
|
394 | || value >= 0xe000 as libc::c_uint && value <= 0xfffd as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xe000_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:394:64
|
394 | || value >= 0xe000 as libc::c_uint && value <= 0xfffd as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xfffd_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:395:29
|
395 | || value >= 0x10000 as libc::c_uint && value <= 0x10ffff as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x10000_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:395:65
|
395 | || value >= 0x10000 as libc::c_uint && value <= 0x10ffff as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x10ffff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:409:25
|
409 | if value <= 0x7f as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x7f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:414:32
|
414 | } else if value <= 0x7ff as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `0x7ff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:418:28
|
418 | *fresh19 = (0xc0 as libc::c_uint).wrapping_add(value >> 6) as yaml_char_t;
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xc0_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:422:28
|
422 | *fresh21 = (0x80 as libc::c_uint).wrapping_add(value & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:422:72
|
422 | *fresh21 = (0x80 as libc::c_uint).wrapping_add(value & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:424:32
|
424 | } else if value <= 0xffff as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xffff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:428:28
|
428 | *fresh23 = (0xe0 as libc::c_uint).wrapping_add(value >> 12) as yaml_char_t;
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xe0_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:432:28
|
432 | *fresh25 = (0x80 as libc::c_uint).wrapping_add(value >> 6 & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:432:77
|
432 | *fresh25 = (0x80 as libc::c_uint).wrapping_add(value >> 6 & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:437:28
|
437 | *fresh27 = (0x80 as libc::c_uint).wrapping_add(value & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:437:72
|
437 | *fresh27 = (0x80 as libc::c_uint).wrapping_add(value & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:443:28
|
443 | *fresh29 = (0xf0 as libc::c_uint).wrapping_add(value >> 18) as yaml_char_t;
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xf0_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:447:28
|
447 | *fresh31 = (0x80 as libc::c_uint).wrapping_add(value >> 12 & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:447:78
|
447 | *fresh31 = (0x80 as libc::c_uint).wrapping_add(value >> 12 & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:452:28
|
452 | *fresh33 = (0x80 as libc::c_uint).wrapping_add(value >> 6 & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:452:77
|
452 | *fresh33 = (0x80 as libc::c_uint).wrapping_add(value >> 6 & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:457:28
|
457 | *fresh35 = (0x80 as libc::c_uint).wrapping_add(value & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/reader.rs:457:72
|
457 | *fresh35 = (0x80 as libc::c_uint).wrapping_add(value & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2611:57
|
2611 | ... if value >= 0xd800 as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xd800_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2612:61
|
2612 | ... && value <= 0xdfff as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xdfff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2613:60
|
2613 | ... || value > 0x10ffff as libc::c_uint
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x10ffff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2627:61
|
2627 | ... if value <= 0x7f as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x7f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2632:68
|
2632 | ... } else if value <= 0x7ff as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `0x7ff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2636:65
|
2636 | ... *fresh574 = (0xc0 as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xc0_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2642:65
|
2642 | ... *fresh575 = (0x80 as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2643:79
|
2643 | ... .wrapping_add(value & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2645:68
|
2645 | ... } else if value <= 0xffff as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xffff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2649:65
|
2649 | ... *fresh576 = (0xe0 as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xe0_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2655:65
|
2655 | ... *fresh577 = (0x80 as libc::c_uint).wrapping_add(
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2656:70
|
2656 | ... value >> 6 & 0x3f as libc::c_uint,
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2662:65
|
2662 | ... *fresh578 = (0x80 as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2663:79
|
2663 | ... .wrapping_add(value & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2669:65
|
2669 | ... *fresh579 = (0xf0 as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xf0_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2675:65
|
2675 | ... *fresh580 = (0x80 as libc::c_uint).wrapping_add(
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2676:71
|
2676 | ... value >> 12 & 0x3f as libc::c_uint,
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2682:65
|
2682 | ... *fresh581 = (0x80 as libc::c_uint).wrapping_add(
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2683:70
|
2683 | ... value >> 6 & 0x3f as libc::c_uint,
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2689:65
|
2689 | ... *fresh582 = (0x80 as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x80_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/scanner.rs:2690:79
|
2690 | ... .wrapping_add(value & 0x3f as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0x3f_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/writer.rs:101:20
|
101 | if value < 0x10000 as libc::c_uint {
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x10000_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/writer.rs:105:26
|
105 | (value & 0xff as libc::c_uint) as libc::c_uchar;
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0xff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/writer.rs:109:40
|
109 | value = value.wrapping_sub(0x10000 as libc::c_uint);
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0x10000_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/writer.rs:111:17
|
111 | (0xd8 as libc::c_uint).wrapping_add(value >> 18) as libc::c_uchar;
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xd8_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/writer.rs:113:32
|
113 | (value >> 10 & 0xff as libc::c_uint) as libc::c_uchar;
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0xff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/writer.rs:117:57
|
117 | .wrapping_offset((high + 2) as isize) = (0xdc as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `0xdc_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/writer.rs:118:44
|
118 | .wrapping_add(value >> 8 & 0xff as libc::c_uint)
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0xff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting integer literal to `u32` is unnecessary
--> src/writer.rs:124:26
|
124 | (value & 0xff as libc::c_uint) as libc::c_uchar;
| ^^^^^^^^^^^^^^^^^^^^ help: try: `0xff_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
https://github.com/rust-lang/rust-clippy/issues/3548
error: variables in the condition are not mutated in the loop body
--> src/scanner.rs:1031:15
|
1031 | while CHECK!((*parser).buffer, b' ')
| _______________^
1032 | | || ((*parser).flow_level != 0 || (*parser).simple_key_allowed == 0)
1033 | | && CHECK!((*parser).buffer, b'\t')
| |__________________________________________________^
|
= note: `-D clippy::while-immutable-condition` implied by `-D clippy::all`
= note: this may lead to an infinite or to a never running loop
= note: this loop contains `return`s or `break`s
= help: rewrite it as `if cond { loop { } }`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
error: variables in the condition are not mutated in the loop body
--> src/macros.rs:138:9
|
138 | *$string.pointer >= b'0' && *$string.pointer <= b'9'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/scanner.rs:1319:11
|
1319 | while IS_DIGIT!((*parser).buffer) {
| --------------------------- in this macro invocation
|
= note: this may lead to an infinite or to a never running loop
= note: this loop contains `return`s or `break`s
= help: rewrite it as `if cond { loop { } }`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
= note: this error originates in the macro `IS_DIGIT` (in Nightly builds, run with -Z macro-backtrace for more info)