Commit 5386a41
committed
Thanks clippy
This adapts to `winnow` changes. Specifically, `changelog.parse`
was using `PResult`, which is deprecated since `winnow` 0.6.25:
https://github.com/winnow-rs/winnow/blob/main/CHANGELOG.md#0625---2025-01-27
This changes from `PResult` to `ModalResult`, which is its
recommended replacement.
At this time, with the current version, `PResult` is an alias for
`ModalResult`. So while this does not establish that the version
upgrade itself hasn't caused unwanted behavioral changes, replacing
`PResult` with `ModalResult` given that we are at this version does
not cause any such problem.
The `clippy` warning this fixes is:
warning: use of deprecated type alias `winnow::PResult`: Replaced with ModalResult
--> src/changelog/parse.rs:473:95
|
473 | fn headline<'a, E: ParserError<&'a str> + FromExternalError<&'a str, ()>>(i: &mut &'a str) -> PResult<Headline...
| ^^^^^^^
|
= note: `#[warn(deprecated)]` on by default1 parent 1fa2b68 commit 5386a41
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| |||
0 commit comments