Commit 0f7e2cd
committed
Replace
For one, this updates the indirect dependency `nom` from 5.x to 7.x,
which gets rid of a future incompatibility warning produced by the
compiler:
warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.2
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 67`
But to achieve that I could have updated `iso8601-duration` to 0.2.
However, the 0.2 version makes conversion into an `std::time::Duration`
weirdly hard. And I'm also confused by the fields being `f32` for no
reason I can think of. Additionally, the crate has very few users and
there is no changelog. So in general, the `iso8601` crate looks much
better. Even if it gives us date parsing, which we don't need, I think
it's still a better option.
Unfortunately, the new crate only has millisecond precision whereas the
previous one could store seconds as `f32`.iso8601-duration with iso8601 crate1 parent 94b25ea commit 0f7e2cd
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
| 812 | + | |
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| |||
0 commit comments