Commit Graph

23 Commits

Author SHA1 Message Date
David Tolnay ba20a60b10
Touch up PR 41 2023-12-08 17:25:29 -08:00
cxworks 84bffa9c1e fix CI error 2023-12-08 20:21:58 -05:00
cxworks cefacdbb27 add missing unit test for i128 2023-12-08 20:15:30 -05:00
David Tolnay fcdb43ec93
Remove no longer triggered clippy suppressions 2021-12-12 12:03:59 -08:00
David Tolnay 42cb96a975
Clean up test and bench macro syntax 2021-12-11 21:04:54 -08:00
David Tolnay 6b06fb04f7
Remove attr matcher from test and bench macro
Formerly needed for conditional i128 support.
2021-12-11 21:02:37 -08:00
David Tolnay 1898210ac6
Eliminate itoa::write and itoa::fmt from tests 2021-12-11 20:44:52 -08:00
David Tolnay 865a5517ea
Remove 2015-style extern crate from test and benches 2021-12-11 20:41:09 -08:00
David Tolnay e970e7117f
Enable 128-bit impls unconditionally 2021-12-11 00:54:25 -08:00
David Tolnay 36c5ae17b4
Convert clippy lint level attributes to tool attrs 2021-12-11 00:16:44 -08:00
David Tolnay 64d46a7b1d
Remove no longer triggered string_lit_as_bytes suppression 2021-09-30 01:31:19 -04:00
David Tolnay f12db11b61
Ignore renamed_and_removed_lints clippy warning
We run our test suite as far back as rustc 1.20, which does not support
the modern tool attribute syntax.

    warning: lint name `cast_lossless` is deprecated and may not have an effect in the future.
     --> tests/test.rs:3:11
      |
    3 |     allow(cast_lossless, string_lit_as_bytes, unseparated_literal_suffix)
      |           ^^^^^^^^^^^^^ help: change it to: `clippy::cast_lossless`
      |
      = note: `#[warn(renamed_and_removed_lints)]` on by default

    warning: lint name `string_lit_as_bytes` is deprecated and may not have an effect in the future.
     --> tests/test.rs:3:26
      |
    3 |     allow(cast_lossless, string_lit_as_bytes, unseparated_literal_suffix)
      |                          ^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::string_lit_as_bytes`

    warning: lint name `unseparated_literal_suffix` is deprecated and may not have an effect in the future.
     --> tests/test.rs:3:47
      |
    3 |     allow(cast_lossless, string_lit_as_bytes, unseparated_literal_suffix)
      |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::unseparated_literal_suffix`
2021-09-30 01:29:45 -04:00
David Tolnay 8f58e3f645
Run clippy on test suite too 2021-09-30 01:28:03 -04:00
Samuel Marks 8d64f674a0
[*.rs] rustfmt 2020-06-29 12:00:26 +10:00
David Tolnay 03846c8925
No longer need i128 feature gate which has been stabilized 2018-10-13 20:10:31 -07:00
David Tolnay 01f062e16c
Format with rustfmt 0.99.4 2018-09-08 12:11:11 -07:00
Mike Hommey 70883abe4d Support no_std
Fixes #3.
2018-03-18 15:58:47 +09:00
Mike Hommey 9f3e867f04 Provide itoa::fmt to write to fmt::Write
Fixes #5.
2018-03-18 15:52:58 +09:00
David Tolnay a3dadb1557
Suppress some clippy lints 2017-09-16 14:22:05 -07:00
Henning Ottesen e9069ce1f1 Add support for 128-bit integers 2017-09-13 03:50:47 +02:00
Simon Sapin 220a8680ca
Include the minus sign in the same buffer, to only make a single write_all call. 2017-08-29 09:47:56 -07:00
Anthony Ramine bd4884d34b Return the number of bytes written from itoa::write (fixes #6) 2017-01-28 22:14:54 +01:00
David Tolnay 92e5b742e9
itoa::write 2016-06-25 14:32:23 -07:00