Report from_utf8 suggestion as maybe incorrect

Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
Sabrina Jewson 2022-04-06 10:14:20 +01:00 committed by GitHub
parent 11045f94e2
commit 41ef4f729f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ pub(super) fn check<'tcx>(
} else {
format!("std::str::from_utf8{postfix}({snippet}).unwrap()")
},
Applicability::Unspecified,
Applicability::MaybeIncorrect,
);
triggered = true;
} else {