Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
algesten committed Jan 17, 2025
1 parent 7532260 commit 67e8199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/body/lossy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl<R: io::Read> io::Read for LossyUtf8Reader<R> {
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
Expand Down

0 comments on commit 67e8199

Please sign in to comment.