mccparse: Switch away from deprecated winnow API

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2040>
This commit is contained in:
Sebastian Dröge 2025-01-14 10:43:40 +02:00
parent 3501912547
commit 3a03310dbc

View file

@ -55,8 +55,7 @@ fn header<'a>(s: &mut &'a [u8]) -> PResult<MccLine<'a>> {
/// Parser for an MCC comment, i.e. a line starting with `//`. We don't return the actual comment
/// text as it's irrelevant for us.
fn comment<'a>(s: &mut &'a [u8]) -> PResult<MccLine<'a>> {
use winnow::combinator::rest;
use winnow::token::literal;
use winnow::token::{literal, rest};
(literal("//"), rest)
.map(|_| MccLine::Comment)