Skip to content

Commit d33976c

Browse files
committed
clippy: allow unwrap_err() here
1 parent e469096 commit d33976c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/implementation/helpers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub(crate) fn validate_utf8_at_offset(input: &[u8], offset: usize) -> Result<(),
1717

1818
#[cold]
1919
#[allow(dead_code)]
20+
#[allow(clippy::unwrap_used)]
2021
pub(crate) fn get_compat_error(input: &[u8], failing_block_pos: usize) -> Utf8ErrorCompat {
2122
let offset = if failing_block_pos == 0 {
2223
// Error must be in this block since it is the first.

0 commit comments

Comments
 (0)