Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src-tauri/src/parser/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ fn hex4_to_u16(bytes: &[u8]) -> Option<u16> {
/// the tool-error truncation logic split a multi-byte emoji at an offset
/// boundary. serde_json rejects lone surrogates per RFC 8259; this pass makes
/// such lines parseable before they reach the deserializer.
fn sanitize_lone_surrogates(s: &str) -> Cow<str> {
fn sanitize_lone_surrogates(s: &str) -> Cow<'_, str> {
let bytes = s.as_bytes();
let len = bytes.len();
let mut i = 0;
Expand Down