Skip to content

Commit 292dc45

Browse files
committed
More lenient lifetime bound in SliceJsonParser::parse_next
1 parent 2ff8ab3 commit 292dc45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl<'a> SliceJsonParser<'a> {
254254
}
255255
}
256256

257-
pub fn parse_next(&mut self) -> Result<JsonEvent<'_>, JsonSyntaxError> {
257+
pub fn parse_next(&mut self) -> Result<JsonEvent<'a>, JsonSyntaxError> {
258258
loop {
259259
let LowLevelJsonParserResult {
260260
event,

0 commit comments

Comments
 (0)