From 67e819938858104c269aa7d01f7eb17bf29f99f4 Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Fri, 17 Jan 2025 09:44:08 +0100 Subject: [PATCH] Fix clippy --- src/body/lossy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/body/lossy.rs b/src/body/lossy.rs index 7bdd1bd3..0bc6e232 100644 --- a/src/body/lossy.rs +++ b/src/body/lossy.rs @@ -58,7 +58,7 @@ impl io::Read for LossyUtf8Reader { invalid_sequence, .. } => { - let valid_len = valid_prefix.as_bytes().len(); + let valid_len = valid_prefix.len(); let invalid_len = invalid_sequence.len(); // Switch out the problem input chars