Skip to content

Commit 5386a41

Browse files
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 default
1 parent 1fa2b68 commit 5386a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/changelog/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ impl<'a> TryFrom<&'a str> for Headline {
470470
}
471471
}
472472

473-
fn headline<'a, E: ParserError<&'a str> + FromExternalError<&'a str, ()>>(i: &mut &'a str) -> PResult<Headline, E> {
473+
fn headline<'a, E: ParserError<&'a str> + FromExternalError<&'a str, ()>>(i: &mut &'a str) -> ModalResult<Headline, E> {
474474
let hashes = take_while(0.., |c: char| c == '#');
475475
let greedy_whitespace = |i: &mut &'a str| take_while(0.., char::is_whitespace).parse_next(i);
476476
let take_n_digits =

0 commit comments

Comments
 (0)