Debian Patches

Status for rust-serde-with/3.4.0-3

Patch Description Author Forwarded Bugs Origin Last update
drop-document-features =================================================================== no
disable-oversensitive-test =================================================================== no
disable-test-needs-upstream-workspace =================================================================== no
older-indexmap =================================================================== no
drop-hashbrown-14 =================================================================== no
relax-dev-depends =================================================================== no
fix-test-feature-requirements =================================================================== no
disable-tests-order-sensitive no
fix-tests-with-serde-1.0.196 [PATCH] Fix tests with serde >= 1.0.196
In serde 1.0.196, the "invalid type" error message for floats started
adding a trailing ".0" if no decimal point was already part of the
formatted float, causing tests to fail like:

---- test_chrono_timestamp_seconds_with_frac stdout ----

error: expect test failed
--> serde_with/tests/chrono_0_4.rs:551:9

Expect:
----
invalid type: floating point `0`, expected a string at line 1 column 3
----

Actual:
----
invalid type: floating point `0.0`, expected a string at line 1 column 3
----

Change the tests to use a test value of 0.1, so the test will work both
pre- and post-serde 1.0.196.
James McCoy <jamessan@jamessan.com> no 2024-05-02

All known versions for source package 'rust-serde-with'

Links