serde/test_suite/tests
David Tolnay 5b24f88e73
Resolve legacy_numeric_constants clippy lints
warning: usage of a legacy numeric method
       --> serde_derive/src/ser.rs:292:51
        |
    292 |     assert!(fields.len() as u64 <= u64::from(u32::max_value()));
        |                                                   ^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        = note: `#[warn(clippy::legacy_numeric_constants)]` on by default
    help: use the associated constant instead
        |
    292 |     assert!(fields.len() as u64 <= u64::from(u32::MAX));
        |                                                   ~~~

    warning: usage of a legacy numeric method
       --> serde_derive/src/ser.rs:400:53
        |
    400 |     assert!(variants.len() as u64 <= u64::from(u32::max_value()));
        |                                                     ^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    help: use the associated constant instead
        |
    400 |     assert!(variants.len() as u64 <= u64::from(u32::MAX));
        |                                                     ~~~

    warning: usage of a legacy numeric method
        --> test_suite/tests/test_de_error.rs:1462:29
         |
    1462 |             Token::U64(u64::max_value()),
         |                             ^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
         = note: `-W clippy::legacy-numeric-constants` implied by `-W clippy::all`
         = help: to override `-W clippy::all` add `#[allow(clippy::legacy_numeric_constants)]`
    help: use the associated constant instead
         |
    1462 |             Token::U64(u64::MAX),
         |                             ~~~

    warning: usage of a legacy numeric method
        --> test_suite/tests/test_de_error.rs:1479:29
         |
    1479 |             Token::U64(u64::max_value()),
         |                             ^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    help: use the associated constant instead
         |
    1479 |             Token::U64(u64::MAX),
         |                             ~~~

    warning: usage of a legacy numeric method
        --> test_suite/tests/test_de_error.rs:1493:29
         |
    1493 |             Token::U64(u64::max_value()),
         |                             ^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    help: use the associated constant instead
         |
    1493 |             Token::U64(u64::MAX),
         |                             ~~~

    warning: usage of a legacy numeric method
        --> test_suite/tests/test_de_error.rs:1510:29
         |
    1510 |             Token::U64(u64::max_value()),
         |                             ^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    help: use the associated constant instead
         |
    1510 |             Token::U64(u64::MAX),
         |                             ~~~
2024-04-05 19:19:14 -07:00
..
bytes Replace try! macro in test suite 2018-12-31 21:46:14 -05:00
macros Ignore unused_macro_rules warning in test macros 2022-05-12 21:33:43 -07:00
regression Ignore dead code lint in tests 2024-03-23 20:26:05 -07:00
ui Update ui test suite to nightly-2024-02-12 2024-02-11 20:00:23 -08:00
unstable Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
compiletest.rs Ignore unused ignore attribute warning in some configurations 2022-04-24 16:01:22 -07:00
regression.rs Make a directory dedicated to regression tests 2023-03-08 19:02:42 -08:00
test_annotations.rs Merge pull request #2613 from ahl/fix-untagged-plus-simple 2023-10-12 19:15:32 -07:00
test_borrow.rs Ungroup imports 2023-07-25 23:06:34 -07:00
test_de_error.rs Resolve legacy_numeric_constants clippy lints 2024-04-05 19:19:14 -07:00
test_de.rs Add RangeFrom and RangeTo tests 2023-11-20 17:28:38 -08:00
test_gen.rs Ignore dead code lint in tests 2024-03-23 20:26:05 -07:00
test_identifier.rs Add tests for aliases 2023-07-23 15:23:36 +05:00
test_ignored_any.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_macros.rs Ignore new dead_code warnings in test 2024-03-11 20:10:30 -07:00
test_remote.rs Add repro of issue 2591 2023-08-20 21:36:30 -07:00
test_roundtrip.rs Ungroup imports 2023-07-25 23:06:34 -07:00
test_self.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_ser.rs Add RangeFrom and RangeTo tests 2023-11-20 17:28:38 -08:00
test_serde_path.rs Ignore dead_code warnings in test 2024-02-07 22:15:42 -08:00
test_unstable.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_value.rs A few minor write_str optimizations and inlining 2024-02-12 16:12:08 -05:00