mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-05-03 06:54:53 +00:00
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:
parent
3501912547
commit
3a03310dbc
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue