Skip to content

Commit c2404e3

Browse files
authored
chore: fix warning in parse_param_value (#28)
1 parent 4c6196d commit c2404e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fn parse_sd_id(input: &str) -> ParseResult<(String, &str)> {
117117
}
118118

119119
/** Parse a `param_value`... a.k.a. a quoted string */
120-
fn parse_param_value(input: &str) -> ParseResult<(Cow<str>, &str)> {
120+
fn parse_param_value(input: &'_ str) -> ParseResult<(Cow<'_, str>, &'_ str)> {
121121
let mut rest = input;
122122
take_char!(rest, '"');
123123
// Can't do a 0-copy &str slice here because we need to un-escape escaped quotes

0 commit comments

Comments
 (0)