Skip to content

Commit dd467f6

Browse files
Update common/src/wtf8/mod.rs
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
1 parent 0a07cd9 commit dd467f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎common/src/wtf8/mod.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ impl Wtf8 {
763763
let mut rest = b;
764764
while let Err(e) = std::str::from_utf8(rest) {
765765
rest = &rest[e.valid_up_to()..];
766-
Self::decode_surrogate(rest)?;
766+
let _ = Self::decode_surrogate(rest)?;
767767
rest = &rest[3..];
768768
}
769769
Some(unsafe { Wtf8::from_bytes_unchecked(b) })

0 commit comments

Comments
 (0)