Skip to content

Commit 41ef4f7

Browse files
Report from_utf8 suggestion as maybe incorrect
Co-authored-by: Philipp Krones <[email protected]>
1 parent 11045f9 commit 41ef4f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/transmute/transmute_ref_to_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub(super) fn check<'tcx>(
4545
} else {
4646
format!("std::str::from_utf8{postfix}({snippet}).unwrap()")
4747
},
48-
Applicability::Unspecified,
48+
Applicability::MaybeIncorrect,
4949
);
5050
triggered = true;
5151
} else {

0 commit comments

Comments
 (0)