Skip to content
Unverified Commit 104797d1 authored by Fahad Zubair's avatar Fahad Zubair Committed by GitHub
Browse files

Add missing lifetime annotation to `EscapedStr::as_escaped_str` (#3920)



`JsonTokenIterator` parses and returns `Token`s from a provided u8
slice. `EscapedStr` is used as a member field in several token variants,
such as `ObjectKey` and `ValueString`. While `as_escaped_str` returns a
reference to the underlying `&'a str`, the lifetime annotation was
missing from its return type.

This PR adds the missing lifetime annotation.

Co-authored-by: default avatarFahad Zubair <fahadzub@amazon.com>
parent 422d9ef2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment